LocationPolicy.fromJson constructor

LocationPolicy.fromJson(
  1. Map json_
)

Implementation

LocationPolicy.fromJson(core.Map json_)
    : this(
        locations: json_.containsKey('locations')
            ? (json_['locations'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  LocationPolicyLocation.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        targetShape: json_.containsKey('targetShape')
            ? json_['targetShape'] as core.String
            : null,
      );