NetworkRoutingConfig.fromJson constructor
NetworkRoutingConfig.fromJson(
- Object? j
Implementation
factory NetworkRoutingConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return NetworkRoutingConfig(
bgpAlwaysCompareMed: switch (json['bgpAlwaysCompareMed']) {
null => null,
Object $1 => decodeBool($1),
},
bgpBestPathSelectionMode: switch (json['bgpBestPathSelectionMode']) {
null => null,
Object $1 => decodeString($1),
},
bgpInterRegionCost: switch (json['bgpInterRegionCost']) {
null => null,
Object $1 => decodeString($1),
},
effectiveBgpAlwaysCompareMed:
switch (json['effectiveBgpAlwaysCompareMed']) {
null => null,
Object $1 => decodeBool($1),
},
effectiveBgpInterRegionCost:
switch (json['effectiveBgpInterRegionCost']) {
null => null,
Object $1 => decodeString($1),
},
routingMode: switch (json['routingMode']) {
null => null,
Object $1 => decodeString($1),
},
);
}