NetworkPeeringConnectionStatus.fromJson constructor

NetworkPeeringConnectionStatus.fromJson(
  1. Object? j
)

Implementation

factory NetworkPeeringConnectionStatus.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return NetworkPeeringConnectionStatus(
    consensusState: switch (json['consensusState']) {
      null => null,
      Object $1 => NetworkPeeringConnectionStatusConsensusState.fromJson($1),
    },
    trafficConfiguration: switch (json['trafficConfiguration']) {
      null => null,
      Object $1 =>
        NetworkPeeringConnectionStatusTrafficConfiguration.fromJson($1),
    },
    updateStrategy: switch (json['updateStrategy']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}