RelationshipData.fromJson constructor

RelationshipData.fromJson(
  1. Map json_
)

Implementation

RelationshipData.fromJson(core.Map json_)
    : this(
        childrenLocations: (json_['childrenLocations'] as core.List?)
            ?.map((value) => RelevantLocation.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        parentChain: json_['parentChain'] as core.String?,
        parentLocation: json_.containsKey('parentLocation')
            ? RelevantLocation.fromJson(json_['parentLocation']
                as core.Map<core.String, core.dynamic>)
            : null,
      );