jsonMap method
Implementation
@override
Map<String, Object> jsonMap() {
Map<String, Object> map = new Map<String, Object>();
map['codec'] = codec.toString();
map['target'] = target;
map['sessionId'] = sessionId;
map['sequenceNumber'] = sequenceNumber;
map['endOfTransmission'] = endOfTransmission;
if (positionalInformation != null) {
map['positionalInformation'] = positionalInformation.toString();
}
map['frameCount'] = frames.length;
map['totalFramesSize'] = frames.fold<int>(
0, (int size, Uint8List frame) => size + frame.lengthInBytes);
return map;
}