KeyboardInsertedContent.fromJson constructor

KeyboardInsertedContent.fromJson(
  1. Map<String, dynamic> metadata
)

Converts JSON received from the Flutter Engine into the Dart class.

Implementation

KeyboardInsertedContent.fromJson(Map<String, dynamic> metadata):
    mimeType = metadata['mimeType'] as String,
    uri = metadata['uri'] as String,
    data = metadata['data'] != null
        ? Uint8List.fromList(List<int>.from(metadata['data'] as Iterable<dynamic>))
        : null;