deserializeByClassName method

  1. @override
dynamic deserializeByClassName(
  1. Map<String, dynamic> data
)
override

Deserialize the provided json data by using the className stored in the data.

Implementation

@override
dynamic deserializeByClassName(Map<String, dynamic> data) {
  var dataClassName = data['className'];
  if (dataClassName is! String) {
    return super.deserializeByClassName(data);
  }
  if (dataClassName == 'RevokedAuthenticationAuthId') {
    return deserialize<_i3.RevokedAuthenticationAuthId>(data['data']);
  }
  if (dataClassName == 'RevokedAuthenticationScope') {
    return deserialize<_i4.RevokedAuthenticationScope>(data['data']);
  }
  if (dataClassName == 'RevokedAuthenticationUser') {
    return deserialize<_i5.RevokedAuthenticationUser>(data['data']);
  }
  if (dataClassName == 'CacheInfo') {
    return deserialize<_i6.CacheInfo>(data['data']);
  }
  if (dataClassName == 'CachesInfo') {
    return deserialize<_i7.CachesInfo>(data['data']);
  }
  if (dataClassName == 'CloudStorageEntry') {
    return deserialize<_i8.CloudStorageEntry>(data['data']);
  }
  if (dataClassName == 'CloudStorageDirectUploadEntry') {
    return deserialize<_i9.CloudStorageDirectUploadEntry>(data['data']);
  }
  if (dataClassName == 'ClusterInfo') {
    return deserialize<_i10.ClusterInfo>(data['data']);
  }
  if (dataClassName == 'ClusterServerInfo') {
    return deserialize<_i11.ClusterServerInfo>(data['data']);
  }
  if (dataClassName == 'BulkData') {
    return deserialize<_i12.BulkData>(data['data']);
  }
  if (dataClassName == 'BulkDataException') {
    return deserialize<_i13.BulkDataException>(data['data']);
  }
  if (dataClassName == 'BulkQueryColumnDescription') {
    return deserialize<_i14.BulkQueryColumnDescription>(data['data']);
  }
  if (dataClassName == 'BulkQueryResult') {
    return deserialize<_i15.BulkQueryResult>(data['data']);
  }
  if (dataClassName == 'ColumnDefinition') {
    return deserialize<_i16.ColumnDefinition>(data['data']);
  }
  if (dataClassName == 'ColumnMigration') {
    return deserialize<_i17.ColumnMigration>(data['data']);
  }
  if (dataClassName == 'ColumnType') {
    return deserialize<_i18.ColumnType>(data['data']);
  }
  if (dataClassName == 'DatabaseDefinition') {
    return deserialize<_i19.DatabaseDefinition>(data['data']);
  }
  if (dataClassName == 'DatabaseDefinitions') {
    return deserialize<_i20.DatabaseDefinitions>(data['data']);
  }
  if (dataClassName == 'DatabaseMigration') {
    return deserialize<_i21.DatabaseMigration>(data['data']);
  }
  if (dataClassName == 'DatabaseMigrationAction') {
    return deserialize<_i22.DatabaseMigrationAction>(data['data']);
  }
  if (dataClassName == 'DatabaseMigrationActionType') {
    return deserialize<_i23.DatabaseMigrationActionType>(data['data']);
  }
  if (dataClassName == 'DatabaseMigrationVersion') {
    return deserialize<_i24.DatabaseMigrationVersion>(data['data']);
  }
  if (dataClassName == 'DatabaseMigrationWarning') {
    return deserialize<_i25.DatabaseMigrationWarning>(data['data']);
  }
  if (dataClassName == 'DatabaseMigrationWarningType') {
    return deserialize<_i26.DatabaseMigrationWarningType>(data['data']);
  }
  if (dataClassName == 'EnumSerialization') {
    return deserialize<_i27.EnumSerialization>(data['data']);
  }
  if (dataClassName == 'Filter') {
    return deserialize<_i28.Filter>(data['data']);
  }
  if (dataClassName == 'FilterConstraint') {
    return deserialize<_i29.FilterConstraint>(data['data']);
  }
  if (dataClassName == 'FilterConstraintType') {
    return deserialize<_i30.FilterConstraintType>(data['data']);
  }
  if (dataClassName == 'ForeignKeyAction') {
    return deserialize<_i31.ForeignKeyAction>(data['data']);
  }
  if (dataClassName == 'ForeignKeyDefinition') {
    return deserialize<_i32.ForeignKeyDefinition>(data['data']);
  }
  if (dataClassName == 'ForeignKeyMatchType') {
    return deserialize<_i33.ForeignKeyMatchType>(data['data']);
  }
  if (dataClassName == 'IndexDefinition') {
    return deserialize<_i34.IndexDefinition>(data['data']);
  }
  if (dataClassName == 'IndexElementDefinition') {
    return deserialize<_i35.IndexElementDefinition>(data['data']);
  }
  if (dataClassName == 'IndexElementDefinitionType') {
    return deserialize<_i36.IndexElementDefinitionType>(data['data']);
  }
  if (dataClassName == 'TableDefinition') {
    return deserialize<_i37.TableDefinition>(data['data']);
  }
  if (dataClassName == 'TableMigration') {
    return deserialize<_i38.TableMigration>(data['data']);
  }
  if (dataClassName == 'DistributedCacheEntry') {
    return deserialize<_i39.DistributedCacheEntry>(data['data']);
  }
  if (dataClassName == 'AccessDeniedException') {
    return deserialize<_i40.AccessDeniedException>(data['data']);
  }
  if (dataClassName == 'FileNotFoundException') {
    return deserialize<_i41.FileNotFoundException>(data['data']);
  }
  if (dataClassName == 'FutureCallEntry') {
    return deserialize<_i42.FutureCallEntry>(data['data']);
  }
  if (dataClassName == 'LogEntry') {
    return deserialize<_i43.LogEntry>(data['data']);
  }
  if (dataClassName == 'LogLevel') {
    return deserialize<_i44.LogLevel>(data['data']);
  }
  if (dataClassName == 'LogResult') {
    return deserialize<_i45.LogResult>(data['data']);
  }
  if (dataClassName == 'LogSettings') {
    return deserialize<_i46.LogSettings>(data['data']);
  }
  if (dataClassName == 'LogSettingsOverride') {
    return deserialize<_i47.LogSettingsOverride>(data['data']);
  }
  if (dataClassName == 'MessageLogEntry') {
    return deserialize<_i48.MessageLogEntry>(data['data']);
  }
  if (dataClassName == 'MethodInfo') {
    return deserialize<_i49.MethodInfo>(data['data']);
  }
  if (dataClassName == 'QueryLogEntry') {
    return deserialize<_i50.QueryLogEntry>(data['data']);
  }
  if (dataClassName == 'ReadWriteTestEntry') {
    return deserialize<_i51.ReadWriteTestEntry>(data['data']);
  }
  if (dataClassName == 'RuntimeSettings') {
    return deserialize<_i52.RuntimeSettings>(data['data']);
  }
  if (dataClassName == 'ServerHealthConnectionInfo') {
    return deserialize<_i53.ServerHealthConnectionInfo>(data['data']);
  }
  if (dataClassName == 'ServerHealthMetric') {
    return deserialize<_i54.ServerHealthMetric>(data['data']);
  }
  if (dataClassName == 'ServerHealthResult') {
    return deserialize<_i55.ServerHealthResult>(data['data']);
  }
  if (dataClassName == 'ServerpodSqlException') {
    return deserialize<_i56.ServerpodSqlException>(data['data']);
  }
  if (dataClassName == 'SessionLogEntry') {
    return deserialize<_i57.SessionLogEntry>(data['data']);
  }
  if (dataClassName == 'SessionLogFilter') {
    return deserialize<_i58.SessionLogFilter>(data['data']);
  }
  if (dataClassName == 'SessionLogInfo') {
    return deserialize<_i59.SessionLogInfo>(data['data']);
  }
  if (dataClassName == 'SessionLogResult') {
    return deserialize<_i60.SessionLogResult>(data['data']);
  }
  return super.deserializeByClassName(data);
}