Subnetwork.fromJson constructor

Subnetwork.fromJson(
  1. Map json_
)

Implementation

Subnetwork.fromJson(core.Map json_)
    : this(
        ipCidrRange: json_.containsKey('ipCidrRange')
            ? json_['ipCidrRange'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        outsideAllocation: json_.containsKey('outsideAllocation')
            ? json_['outsideAllocation'] as core.bool
            : null,
        region: json_.containsKey('region')
            ? json_['region'] as core.String
            : null,
        secondaryIpRanges: json_.containsKey('secondaryIpRanges')
            ? (json_['secondaryIpRanges'] as core.List)
                .map((value) => SecondaryIpRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );