RelatedPerson.fromMap constructor
Constructs a RelatedPerson instance from a map
.
Once created, no properties of an RelatedPerson object may be changed.
Implementation
RelatedPerson.fromMap(final Map<String, dynamic> map)
: label = map[_labelKey] == null ? null : '${map[_labelKey]}',
relatedPerson = map[_relatedPersonKey] == null
? throw const FormatException(
'The [relatedPerson] parameter cannot be null.',
)
: '${map[_relatedPersonKey]}';