toMap property

Map<String, dynamic> get toMap

Converts this content to a map for native platform communication.

Returns a map containing the content type and value that can be serialized and sent to native platforms.

Implementation

Map<String, dynamic> get toMap {
  return {'contentType': contentType, 'contentValue': contentValue};
}