PacketIntervals.fromJson constructor
PacketIntervals.fromJson(
- Object? j
Implementation
factory PacketIntervals.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PacketIntervals(
avgMs: switch (json['avgMs']) {
null => null,
Object $1 => decodeInt64($1),
},
duration: switch (json['duration']) {
null => null,
Object $1 => decodeString($1),
},
maxMs: switch (json['maxMs']) {
null => null,
Object $1 => decodeInt64($1),
},
minMs: switch (json['minMs']) {
null => null,
Object $1 => decodeInt64($1),
},
numIntervals: switch (json['numIntervals']) {
null => null,
Object $1 => decodeInt64($1),
},
type: switch (json['type']) {
null => null,
Object $1 => decodeString($1),
},
);
}