PersonMetadata.fromJson constructor
PersonMetadata.fromJson(
- Map json_
Implementation
PersonMetadata.fromJson(core.Map json_)
: this(
deleted: json_.containsKey('deleted')
? json_['deleted'] as core.bool
: null,
linkedPeopleResourceNames:
json_.containsKey('linkedPeopleResourceNames')
? (json_['linkedPeopleResourceNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
objectType: json_.containsKey('objectType')
? json_['objectType'] as core.String
: null,
previousResourceNames: json_.containsKey('previousResourceNames')
? (json_['previousResourceNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
sources: json_.containsKey('sources')
? (json_['sources'] as core.List)
.map((value) => Source.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);