serializeAsMap method

Map<String, dynamic> serializeAsMap()

Serialize the object to a map for use over the method channel

Implementation

Map<String, dynamic> serializeAsMap() {
  final Map<String, dynamic> pendingRequest = {
    'username': username,
    if (options != null) 'options': options?.serializeAsMap(),
  };
  return pendingRequest;
}