getClassNameForObject method
Get the className for the provided object.
Implementation
@override
String? getClassNameForObject(Object? data) {
String? className = super.getClassNameForObject(data);
if (className != null) return className;
if (data is Map<String, dynamic> && data['__className__'] is String) {
return (data['__className__'] as String).replaceFirst('serverpod.', '');
}
switch (data) {
case _i3.RevokedAuthenticationAuthId():
return 'RevokedAuthenticationAuthId';
case _i4.RevokedAuthenticationScope():
return 'RevokedAuthenticationScope';
case _i5.RevokedAuthenticationUser():
return 'RevokedAuthenticationUser';
case _i6.CacheInfo():
return 'CacheInfo';
case _i7.CachesInfo():
return 'CachesInfo';
case _i8.CloudStorageEntry():
return 'CloudStorageEntry';
case _i9.CloudStorageDirectUploadEntry():
return 'CloudStorageDirectUploadEntry';
case _i10.ClusterInfo():
return 'ClusterInfo';
case _i11.ClusterServerInfo():
return 'ClusterServerInfo';
case _i12.DatabaseMigrationVersion():
return 'DatabaseMigrationVersion';
case _i13.DistributedCacheEntry():
return 'DistributedCacheEntry';
case _i14.AccessDeniedException():
return 'AccessDeniedException';
case _i15.FileNotFoundException():
return 'FileNotFoundException';
case _i16.FutureCallClaimEntry():
return 'FutureCallClaimEntry';
case _i17.FutureCallEntry():
return 'FutureCallEntry';
case _i18.LogEntry():
return 'LogEntry';
case _i19.LogLevel():
return 'LogLevel';
case _i20.LogResult():
return 'LogResult';
case _i21.LogSettings():
return 'LogSettings';
case _i22.LogSettingsOverride():
return 'LogSettingsOverride';
case _i23.MessageLogEntry():
return 'MessageLogEntry';
case _i24.MethodInfo():
return 'MethodInfo';
case _i25.QueryLogEntry():
return 'QueryLogEntry';
case _i26.ReadWriteTestEntry():
return 'ReadWriteTestEntry';
case _i27.RuntimeSettings():
return 'RuntimeSettings';
case _i28.ServerHealthConnectionInfo():
return 'ServerHealthConnectionInfo';
case _i29.ServerHealthMetric():
return 'ServerHealthMetric';
case _i30.ServerHealthResult():
return 'ServerHealthResult';
case _i31.ServerpodSqlException():
return 'ServerpodSqlException';
case _i32.SessionLogEntry():
return 'SessionLogEntry';
case _i33.SessionLogFilter():
return 'SessionLogFilter';
case _i34.SessionLogInfo():
return 'SessionLogInfo';
case _i35.SessionLogResult():
return 'SessionLogResult';
}
return null;
}