RelationshipData.fromJson constructor

RelationshipData.fromJson(
  1. Map json_
)

Implementation

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