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