toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
'type': type,
'data': data,
'mimeType': mimeType,
if (annotations != null) 'annotations': annotations!.toMap(),
if ($meta != null) '_meta': $meta!.toMap(),
};
}