toMethodChannelMap method
Converts this object to a map suitable for method-channel transport.
Implementation
Map<String, dynamic> toMethodChannelMap() {
final map = <String, dynamic>{
'payload': payload,
if (promptMessage != null) 'promptMessage': promptMessage,
};
if (androidOptions != null) {
map.addAll(androidOptions!.toMethodChannelMap());
}
if (iosOptions != null) {
map.addAll(iosOptions!.toMethodChannelMap());
}
if (macosOptions != null) {
map.addAll(macosOptions!.toMethodChannelMap());
}
return map;
}