UsableSubnetwork.fromJson constructor

UsableSubnetwork.fromJson(
  1. Map json_
)

Implementation

UsableSubnetwork.fromJson(core.Map json_)
    : this(
        ipCidrRange: json_.containsKey('ipCidrRange')
            ? json_['ipCidrRange'] as core.String
            : null,
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        secondaryIpRanges: json_.containsKey('secondaryIpRanges')
            ? (json_['secondaryIpRanges'] as core.List)
                .map((value) => UsableSubnetworkSecondaryRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        statusMessage: json_.containsKey('statusMessage')
            ? json_['statusMessage'] as core.String
            : null,
        subnetwork: json_.containsKey('subnetwork')
            ? json_['subnetwork'] as core.String
            : null,
      );