BfdPacket.fromJson constructor
BfdPacket.fromJson(
- Object? j
Implementation
factory BfdPacket.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BfdPacket(
authenticationPresent: switch (json['authenticationPresent']) {
null => null,
Object $1 => decodeBool($1),
},
controlPlaneIndependent: switch (json['controlPlaneIndependent']) {
null => null,
Object $1 => decodeBool($1),
},
demand: switch (json['demand']) {
null => null,
Object $1 => decodeBool($1),
},
diagnostic: switch (json['diagnostic']) {
null => null,
Object $1 => decodeString($1),
},
final$: switch (json['final']) {
null => null,
Object $1 => decodeBool($1),
},
length: switch (json['length']) {
null => null,
Object $1 => decodeInt($1),
},
minEchoRxIntervalMs: switch (json['minEchoRxIntervalMs']) {
null => null,
Object $1 => decodeInt($1),
},
minRxIntervalMs: switch (json['minRxIntervalMs']) {
null => null,
Object $1 => decodeInt($1),
},
minTxIntervalMs: switch (json['minTxIntervalMs']) {
null => null,
Object $1 => decodeInt($1),
},
multiplier: switch (json['multiplier']) {
null => null,
Object $1 => decodeInt($1),
},
multipoint: switch (json['multipoint']) {
null => null,
Object $1 => decodeBool($1),
},
myDiscriminator: switch (json['myDiscriminator']) {
null => null,
Object $1 => decodeInt($1),
},
poll: switch (json['poll']) {
null => null,
Object $1 => decodeBool($1),
},
state: switch (json['state']) {
null => null,
Object $1 => decodeString($1),
},
version: switch (json['version']) {
null => null,
Object $1 => decodeInt($1),
},
yourDiscriminator: switch (json['yourDiscriminator']) {
null => null,
Object $1 => decodeInt($1),
},
);
}