toJson method
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;
}