UpdateUserAvatar$Mutation$UpdateUserAvatar.fromJson constructor

UpdateUserAvatar$Mutation$UpdateUserAvatar.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpdateUserAvatar$Mutation$UpdateUserAvatar.fromJson(
    Map<String, dynamic> json) {
  switch (json['__typename'].toString()) {
    case r'MyUserEventsVersioned':
      return UpdateUserAvatar$Mutation$UpdateUserAvatar$MyUserEventsVersioned
          .fromJson(json);
    case r'UpdateUserAvatarError':
      return UpdateUserAvatar$Mutation$UpdateUserAvatar$UpdateUserAvatarError
          .fromJson(json);
    default:
  }
  return _$UpdateUserAvatar$Mutation$UpdateUserAvatarFromJson(json);
}