serializeAsMap method

Map<String, Object?> serializeAsMap()

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

Implementation

Map<String, Object?> serializeAsMap() => {
      'userAttributeKey': userAttributeKey.key,
      if (options != null) 'options': options?.serializeAsMap(),
    };