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,
'title': title,
'statusMessage': statusMessage,
'endTime': endTime,
};
}