PeeringRoute.fromJson constructor

PeeringRoute.fromJson(
  1. Map json_
)

Implementation

PeeringRoute.fromJson(core.Map json_)
    : this(
        destRange: json_.containsKey('destRange')
            ? json_['destRange'] as core.String
            : null,
        direction: json_.containsKey('direction')
            ? json_['direction'] as core.String
            : null,
        imported: json_.containsKey('imported')
            ? json_['imported'] as core.bool
            : null,
        nextHopRegion: json_.containsKey('nextHopRegion')
            ? json_['nextHopRegion'] as core.String
            : null,
        priority: json_.containsKey('priority')
            ? json_['priority'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );