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,
);