BfdStatusPacketCounts.fromJson constructor
BfdStatusPacketCounts.fromJson(
- Object? j
Implementation
factory BfdStatusPacketCounts.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BfdStatusPacketCounts(
numRx: switch (json['numRx']) {
null => null,
Object $1 => decodeInt($1),
},
numRxRejected: switch (json['numRxRejected']) {
null => null,
Object $1 => decodeInt($1),
},
numRxSuccessful: switch (json['numRxSuccessful']) {
null => null,
Object $1 => decodeInt($1),
},
numTx: switch (json['numTx']) {
null => null,
Object $1 => decodeInt($1),
},
);
}