UserInfo.fromJson constructor
UserInfo.fromJson(
- Map json_
Implementation
UserInfo.fromJson(core.Map json_)
: this(
createdAt: json_.containsKey('createdAt')
? json_['createdAt'] as core.String
: null,
customAttributes: json_.containsKey('customAttributes')
? json_['customAttributes'] as core.String
: null,
customAuth: json_.containsKey('customAuth')
? json_['customAuth'] as core.bool
: null,
disabled: json_.containsKey('disabled')
? json_['disabled'] as core.bool
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
email:
json_.containsKey('email') ? json_['email'] as core.String : null,
emailVerified: json_.containsKey('emailVerified')
? json_['emailVerified'] as core.bool
: null,
lastLoginAt: json_.containsKey('lastLoginAt')
? json_['lastLoginAt'] as core.String
: null,
localId: json_.containsKey('localId')
? json_['localId'] as core.String
: null,
passwordHash: json_.containsKey('passwordHash')
? json_['passwordHash'] as core.String
: null,
passwordUpdatedAt: json_.containsKey('passwordUpdatedAt')
? (json_['passwordUpdatedAt'] as core.num).toDouble()
: null,
phoneNumber: json_.containsKey('phoneNumber')
? json_['phoneNumber'] as core.String
: null,
photoUrl: json_.containsKey('photoUrl')
? json_['photoUrl'] as core.String
: null,
providerUserInfo: json_.containsKey('providerUserInfo')
? (json_['providerUserInfo'] as core.List)
.map((value) => UserInfoProviderUserInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
rawPassword: json_.containsKey('rawPassword')
? json_['rawPassword'] as core.String
: null,
salt: json_.containsKey('salt') ? json_['salt'] as core.String : null,
screenName: json_.containsKey('screenName')
? json_['screenName'] as core.String
: null,
validSince: json_.containsKey('validSince')
? json_['validSince'] as core.String
: null,
version: json_.containsKey('version')
? json_['version'] as core.int
: null,
);