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,
    'data': data,
  };
}