Account.fromJson constructor
Account.fromJson(
- dynamic json
Implementation
Account.fromJson(dynamic json) : super.fromJson(json) {
uid = json['UID'];
uidSignature = json['UIDSignature'];
created = json['created'];
createdTimestamp = json['createdTimestamp'];
if (json['emails'] != null) {
emails = Emails.fromJson(json['emails'].cast<String, dynamic>());
}
isActive = json['isActive'];
isRegistered = json['isRegistered'];
isVerified = json['isVerified'];
lastLogin = json['lastLogin'];
lastLoginTimestamp = json['lastLoginTimestamp'];
lastUpdated = json['lastUpdated'];
lastUpdatedTimestamp = json['lastUpdatedTimestamp'];
loginProvider = json['loginProvider'];
oldestDataUpdated = json['oldestDataUpdated'];
oldestDataUpdatedTimestamp = json['oldestDataUpdatedTimestamp'];
if (json['profile'] != null) {
profile = Profile.fromJson(json['profile'].cast<String, dynamic>());
}
registered = json['registered'];
registeredTimestamp = json['registeredTimestamp'];
if (json['sessionInfo'] != null) {
sessionInfo =
SessionInfo.fromJson(json['sessionInfo'].cast<String, dynamic>());
}
signatureTimestamp = json['signatureTimestamp'];
socialProviders = json['socialProviders'];
verified = json['verified'];
verifiedTimestamp = json['verifiedTimestamp'];
}