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