UserEventsVersionedMixin$Events.fromJson constructor

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

Implementation

factory UserEventsVersionedMixin$Events.fromJson(Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'EventUserAvatarDeleted':
      return UserEventsVersionedMixin$Events$EventUserAvatarDeleted.fromJson(
          json);
    case r'EventUserAvatarUpdated':
      return UserEventsVersionedMixin$Events$EventUserAvatarUpdated.fromJson(
          json);
    case r'EventUserBioDeleted':
      return UserEventsVersionedMixin$Events$EventUserBioDeleted.fromJson(
          json);
    case r'EventUserBioUpdated':
      return UserEventsVersionedMixin$Events$EventUserBioUpdated.fromJson(
          json);
    case r'EventUserCallCoverDeleted':
      return UserEventsVersionedMixin$Events$EventUserCallCoverDeleted
          .fromJson(json);
    case r'EventUserCallCoverUpdated':
      return UserEventsVersionedMixin$Events$EventUserCallCoverUpdated
          .fromJson(json);
    case r'EventUserCameOffline':
      return UserEventsVersionedMixin$Events$EventUserCameOffline.fromJson(
          json);
    case r'EventUserCameOnline':
      return UserEventsVersionedMixin$Events$EventUserCameOnline.fromJson(
          json);
    case r'EventUserDeleted':
      return UserEventsVersionedMixin$Events$EventUserDeleted.fromJson(json);
    case r'EventUserNameDeleted':
      return UserEventsVersionedMixin$Events$EventUserNameDeleted.fromJson(
          json);
    case r'EventUserNameUpdated':
      return UserEventsVersionedMixin$Events$EventUserNameUpdated.fromJson(
          json);
    case r'EventUserPresenceUpdated':
      return UserEventsVersionedMixin$Events$EventUserPresenceUpdated
          .fromJson(json);
    case r'EventUserStatusDeleted':
      return UserEventsVersionedMixin$Events$EventUserStatusDeleted.fromJson(
          json);
    case r'EventUserStatusUpdated':
      return UserEventsVersionedMixin$Events$EventUserStatusUpdated.fromJson(
          json);
    case r'EventUserWelcomeMessageDeleted':
      return UserEventsVersionedMixin$Events$EventUserWelcomeMessageDeleted
          .fromJson(json);
    case r'EventUserWelcomeMessageUpdated':
      return UserEventsVersionedMixin$Events$EventUserWelcomeMessageUpdated
          .fromJson(json);
    default:
  }
  return _$UserEventsVersionedMixin$EventsFromJson(json);
}