User.fromJson constructor
User.fromJson(
- Map json_
Implementation
User.fromJson(core.Map json_)
: this(
addresses: json_.containsKey('addresses') ? json_['addresses'] : null,
agreedToTerms: json_.containsKey('agreedToTerms')
? json_['agreedToTerms'] as core.bool
: null,
aliases: json_.containsKey('aliases')
? (json_['aliases'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
archived: json_.containsKey('archived')
? json_['archived'] as core.bool
: null,
changePasswordAtNextLogin:
json_.containsKey('changePasswordAtNextLogin')
? json_['changePasswordAtNextLogin'] as core.bool
: null,
creationTime: json_.containsKey('creationTime')
? core.DateTime.parse(json_['creationTime'] as core.String)
: null,
customSchemas: json_.containsKey('customSchemas')
? (json_['customSchemas'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.Map<core.String, core.dynamic>,
),
)
: null,
customerId: json_.containsKey('customerId')
? json_['customerId'] as core.String
: null,
deletionTime: json_.containsKey('deletionTime')
? core.DateTime.parse(json_['deletionTime'] as core.String)
: null,
emails: json_.containsKey('emails') ? json_['emails'] : null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
externalIds:
json_.containsKey('externalIds') ? json_['externalIds'] : null,
gender: json_.containsKey('gender') ? json_['gender'] : null,
hashFunction: json_.containsKey('hashFunction')
? json_['hashFunction'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
ims: json_.containsKey('ims') ? json_['ims'] : null,
includeInGlobalAddressList:
json_.containsKey('includeInGlobalAddressList')
? json_['includeInGlobalAddressList'] as core.bool
: null,
ipWhitelisted: json_.containsKey('ipWhitelisted')
? json_['ipWhitelisted'] as core.bool
: null,
isAdmin: json_.containsKey('isAdmin')
? json_['isAdmin'] as core.bool
: null,
isDelegatedAdmin: json_.containsKey('isDelegatedAdmin')
? json_['isDelegatedAdmin'] as core.bool
: null,
isEnforcedIn2Sv: json_.containsKey('isEnforcedIn2Sv')
? json_['isEnforcedIn2Sv'] as core.bool
: null,
isEnrolledIn2Sv: json_.containsKey('isEnrolledIn2Sv')
? json_['isEnrolledIn2Sv'] as core.bool
: null,
isMailboxSetup: json_.containsKey('isMailboxSetup')
? json_['isMailboxSetup'] as core.bool
: null,
keywords: json_.containsKey('keywords') ? json_['keywords'] : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
languages: json_.containsKey('languages') ? json_['languages'] : null,
lastLoginTime: json_.containsKey('lastLoginTime')
? core.DateTime.parse(json_['lastLoginTime'] as core.String)
: null,
locations: json_.containsKey('locations') ? json_['locations'] : null,
name: json_.containsKey('name')
? UserName.fromJson(
json_['name'] as core.Map<core.String, core.dynamic>)
: null,
nonEditableAliases: json_.containsKey('nonEditableAliases')
? (json_['nonEditableAliases'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
notes: json_.containsKey('notes') ? json_['notes'] : null,
orgUnitPath: json_.containsKey('orgUnitPath')
? json_['orgUnitPath'] as core.String
: null,
organizations: json_.containsKey('organizations')
? json_['organizations']
: null,
password: json_.containsKey('password')
? json_['password'] as core.String
: null,
phones: json_.containsKey('phones') ? json_['phones'] : null,
posixAccounts: json_.containsKey('posixAccounts')
? json_['posixAccounts']
: null,
primaryEmail: json_.containsKey('primaryEmail')
? json_['primaryEmail'] as core.String
: null,
recoveryEmail: json_.containsKey('recoveryEmail')
? json_['recoveryEmail'] as core.String
: null,
recoveryPhone: json_.containsKey('recoveryPhone')
? json_['recoveryPhone'] as core.String
: null,
relations: json_.containsKey('relations') ? json_['relations'] : null,
sshPublicKeys: json_.containsKey('sshPublicKeys')
? json_['sshPublicKeys']
: null,
suspended: json_.containsKey('suspended')
? json_['suspended'] as core.bool
: null,
suspensionReason: json_.containsKey('suspensionReason')
? json_['suspensionReason'] as core.String
: null,
thumbnailPhotoEtag: json_.containsKey('thumbnailPhotoEtag')
? json_['thumbnailPhotoEtag'] as core.String
: null,
thumbnailPhotoUrl: json_.containsKey('thumbnailPhotoUrl')
? json_['thumbnailPhotoUrl'] as core.String
: null,
websites: json_.containsKey('websites') ? json_['websites'] : null,
);