toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result = <String, dynamic>{'uri': uri};
  if (mimeType != null) result['mimeType'] = mimeType;
  if (text != null) result['text'] = text;
  if (blob != null) result['blob'] = blob;
  return result;
}