ExchangedPeeringRoute.fromJson constructor
ExchangedPeeringRoute.fromJson(
- Object? j
Implementation
factory ExchangedPeeringRoute.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ExchangedPeeringRoute(
destRange: switch (json['destRange']) {
null => null,
Object $1 => decodeString($1),
},
imported: switch (json['imported']) {
null => null,
Object $1 => decodeBool($1),
},
nextHopRegion: switch (json['nextHopRegion']) {
null => null,
Object $1 => decodeString($1),
},
priority: switch (json['priority']) {
null => null,
Object $1 => decodeInt($1),
},
type: switch (json['type']) {
null => null,
Object $1 => decodeString($1),
},
);
}