RouterBgpPeerBfd.fromJson constructor

RouterBgpPeerBfd.fromJson(
  1. Object? j
)

Implementation

factory RouterBgpPeerBfd.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RouterBgpPeerBfd(
    minReceiveInterval: switch (json['minReceiveInterval']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    minTransmitInterval: switch (json['minTransmitInterval']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    multiplier: switch (json['multiplier']) {
      null => null,
      Object $1 => decodeInt($1),
    },
    sessionInitializationMode: switch (json['sessionInitializationMode']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}