Person.fromJson constructor
Person.fromJson(
- Map json_
Implementation
Person.fromJson(core.Map json_)
: this(
addresses: json_.containsKey('addresses')
? (json_['addresses'] as core.List)
.map((value) => Address.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
ageRange: json_.containsKey('ageRange')
? json_['ageRange'] as core.String
: null,
ageRanges: json_.containsKey('ageRanges')
? (json_['ageRanges'] as core.List)
.map((value) => AgeRangeType.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
biographies: json_.containsKey('biographies')
? (json_['biographies'] as core.List)
.map((value) => Biography.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
birthdays: json_.containsKey('birthdays')
? (json_['birthdays'] as core.List)
.map((value) => Birthday.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
braggingRights: json_.containsKey('braggingRights')
? (json_['braggingRights'] as core.List)
.map((value) => BraggingRights.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
calendarUrls: json_.containsKey('calendarUrls')
? (json_['calendarUrls'] as core.List)
.map((value) => CalendarUrl.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
clientData: json_.containsKey('clientData')
? (json_['clientData'] as core.List)
.map((value) => ClientData.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
coverPhotos: json_.containsKey('coverPhotos')
? (json_['coverPhotos'] as core.List)
.map((value) => CoverPhoto.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
emailAddresses: json_.containsKey('emailAddresses')
? (json_['emailAddresses'] as core.List)
.map((value) => EmailAddress.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
events: json_.containsKey('events')
? (json_['events'] as core.List)
.map((value) => Event.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
externalIds: json_.containsKey('externalIds')
? (json_['externalIds'] as core.List)
.map((value) => ExternalId.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
fileAses: json_.containsKey('fileAses')
? (json_['fileAses'] as core.List)
.map((value) => FileAs.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
genders: json_.containsKey('genders')
? (json_['genders'] as core.List)
.map((value) => Gender.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
imClients: json_.containsKey('imClients')
? (json_['imClients'] as core.List)
.map((value) => ImClient.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
interests: json_.containsKey('interests')
? (json_['interests'] as core.List)
.map((value) => Interest.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locales: json_.containsKey('locales')
? (json_['locales'] as core.List)
.map((value) => Locale.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
locations: json_.containsKey('locations')
? (json_['locations'] as core.List)
.map((value) => Location.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
memberships: json_.containsKey('memberships')
? (json_['memberships'] as core.List)
.map((value) => Membership.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
metadata: json_.containsKey('metadata')
? PersonMetadata.fromJson(
json_['metadata'] as core.Map<core.String, core.dynamic>)
: null,
miscKeywords: json_.containsKey('miscKeywords')
? (json_['miscKeywords'] as core.List)
.map((value) => MiscKeyword.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
names: json_.containsKey('names')
? (json_['names'] as core.List)
.map((value) => Name.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
nicknames: json_.containsKey('nicknames')
? (json_['nicknames'] as core.List)
.map((value) => Nickname.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
occupations: json_.containsKey('occupations')
? (json_['occupations'] as core.List)
.map((value) => Occupation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
organizations: json_.containsKey('organizations')
? (json_['organizations'] as core.List)
.map((value) => Organization.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
phoneNumbers: json_.containsKey('phoneNumbers')
? (json_['phoneNumbers'] as core.List)
.map((value) => PhoneNumber.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
photos: json_.containsKey('photos')
? (json_['photos'] as core.List)
.map((value) => Photo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
relations: json_.containsKey('relations')
? (json_['relations'] as core.List)
.map((value) => Relation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
relationshipInterests: json_.containsKey('relationshipInterests')
? (json_['relationshipInterests'] as core.List)
.map((value) => RelationshipInterest.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
relationshipStatuses: json_.containsKey('relationshipStatuses')
? (json_['relationshipStatuses'] as core.List)
.map((value) => RelationshipStatus.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
residences: json_.containsKey('residences')
? (json_['residences'] as core.List)
.map((value) => Residence.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
resourceName: json_.containsKey('resourceName')
? json_['resourceName'] as core.String
: null,
sipAddresses: json_.containsKey('sipAddresses')
? (json_['sipAddresses'] as core.List)
.map((value) => SipAddress.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
skills: json_.containsKey('skills')
? (json_['skills'] as core.List)
.map((value) => Skill.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
taglines: json_.containsKey('taglines')
? (json_['taglines'] as core.List)
.map((value) => Tagline.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
urls: json_.containsKey('urls')
? (json_['urls'] as core.List)
.map((value) => Url.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
userDefined: json_.containsKey('userDefined')
? (json_['userDefined'] as core.List)
.map((value) => UserDefined.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);