BgpRouteNetworkLayerReachabilityInformation.fromJson constructor

BgpRouteNetworkLayerReachabilityInformation.fromJson(
  1. Object? j
)

Implementation

factory BgpRouteNetworkLayerReachabilityInformation.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return BgpRouteNetworkLayerReachabilityInformation(
    pathId: switch (json['pathId']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    prefix: switch (json['prefix']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}