toMap method

  1. @override
Map<String, dynamic> toMap()
override

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,
  };
}