UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$Changed.fromJson constructor

UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$Changed.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$Changed.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'ImageAttachment':
      return UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$Changed$ImageAttachment
          .fromJson(json);
    case r'FileAttachment':
      return UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$Changed$FileAttachment
          .fromJson(json);
    default:
  }
  return _$UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated$Attachments$ChangedFromJson(
      json);
}