RefreshSession$Mutation$RefreshSession.fromJson constructor

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

Implementation

factory RefreshSession$Mutation$RefreshSession.fromJson(
  Map<String, dynamic> json,
) {
  switch (json['__typename'].toString()) {
    case r'CreateSessionOk':
      return RefreshSession$Mutation$RefreshSession$CreateSessionOk.fromJson(
        json,
      );
    case r'RefreshSessionError':
      return RefreshSession$Mutation$RefreshSession$RefreshSessionError.fromJson(
        json,
      );
    default:
  }
  return _$RefreshSession$Mutation$RefreshSessionFromJson(json);
}