AuthenticationResponse.fromJson constructor
AuthenticationResponse.fromJson(
- Map<String, dynamic> jsonSerialization
)
Implementation
factory AuthenticationResponse.fromJson(
Map<String, dynamic> jsonSerialization) {
return AuthenticationResponse(
success: jsonSerialization['success'] as bool,
key: jsonSerialization['key'] as String?,
keyId: jsonSerialization['keyId'] as int?,
userInfo: jsonSerialization['userInfo'] == null
? null
: _i2.UserInfo.fromJson(
(jsonSerialization['userInfo'] as Map<String, dynamic>)),
failReason: jsonSerialization['failReason'] == null
? null
: _i2.AuthenticationFailReason.fromJson(
(jsonSerialization['failReason'] as int)),
);
}