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_auth.',
'',
);
}
switch (data) {
case _iy492fk4.AppleAuthInfo():
return 'AppleAuthInfo';
case _i8lzboul.AuthKey():
return 'AuthKey';
case _ika0ufek.AuthenticationFailReason():
return 'AuthenticationFailReason';
case _i6gspdjt.AuthenticationResponse():
return 'AuthenticationResponse';
case _il95bqq6.EmailAuth():
return 'EmailAuth';
case _ilnsxyj8.EmailCreateAccountRequest():
return 'EmailCreateAccountRequest';
case _iaz0raab.EmailFailedSignIn():
return 'EmailFailedSignIn';
case _iiusgova.EmailPasswordReset():
return 'EmailPasswordReset';
case _ifm8n60r.EmailReset():
return 'EmailReset';
case _is585jau.GoogleRefreshToken():
return 'GoogleRefreshToken';
case _i0mx5j5p.UserImage():
return 'UserImage';
case _iliwsvmu.UserInfo():
return 'UserInfo';
case _iabwsxht.UserInfoPublic():
return 'UserInfoPublic';
case _i5rdiffu.UserSettingsConfig():
return 'UserSettingsConfig';
}
className = _isp.Protocol().getClassNameForObject(data);
if (className != null) {
return className.contains('.') ? className : 'serverpod.$className';
}
return null;
}