UserEvents$Subscription$UserEvents.fromJson constructor

UserEvents$Subscription$UserEvents.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UserEvents$Subscription$UserEvents.fromJson(
  Map<String, dynamic> json,
) {
  switch (json['__typename'].toString()) {
    case r'SubscriptionInitialized':
      return UserEvents$Subscription$UserEvents$SubscriptionInitialized.fromJson(
        json,
      );
    case r'User':
      return UserEvents$Subscription$UserEvents$User.fromJson(json);
    case r'UserEventsVersioned':
      return UserEvents$Subscription$UserEvents$UserEventsVersioned.fromJson(
        json,
      );
    case r'BlocklistEventsVersioned':
      return UserEvents$Subscription$UserEvents$BlocklistEventsVersioned.fromJson(
        json,
      );
    case r'IsBlocked':
      return UserEvents$Subscription$UserEvents$IsBlocked.fromJson(json);
    default:
  }
  return _$UserEvents$Subscription$UserEventsFromJson(json);
}