toMap method

Map<String, dynamic> toMap()

Converts this TokenizedData to a Map suitable for sending over the platform channel.

Implementation

Map<String, dynamic> toMap() {
  return {
    'tokens': tokens?.map((e) => e.toMap()).toList(),
  };
}