Connection.fromJson constructor

Connection.fromJson(
  1. Map json_
)

Implementation

Connection.fromJson(core.Map json_)
    : this(
        network: json_.containsKey('network')
            ? json_['network'] as core.String
            : null,
        peering: json_.containsKey('peering')
            ? json_['peering'] as core.String
            : null,
        reservedPeeringRanges: json_.containsKey('reservedPeeringRanges')
            ? (json_['reservedPeeringRanges'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        service: json_.containsKey('service')
            ? json_['service'] as core.String
            : null,
      );