toMap method
Serializes the payload into a flat map understood by the native handlers.
Implementation
@override
Map<String, dynamic> toMap() {
return {
'type': type.rawValue,
'header': header,
'status': status,
'substatus': substatus,
'segmentsTotal': segmentsTotal,
'segmentsComplete': segmentsComplete,
'trailingText': trailingText,
};
}