RangeReservation.fromJson constructor

RangeReservation.fromJson(
  1. Map json_
)

Implementation

RangeReservation.fromJson(core.Map json_)
    : this(
        ipPrefixLength: json_.containsKey('ipPrefixLength')
            ? json_['ipPrefixLength'] as core.int
            : null,
        requestedRanges: json_.containsKey('requestedRanges')
            ? (json_['requestedRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        secondaryRangeIpPrefixLengths:
            json_.containsKey('secondaryRangeIpPrefixLengths')
                ? (json_['secondaryRangeIpPrefixLengths'] as core.List)
                    .map((value) => value as core.int)
                    .toList()
                : null,
        subnetworkCandidates: json_.containsKey('subnetworkCandidates')
            ? (json_['subnetworkCandidates'] as core.List)
                .map((value) => Subnetwork.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );