toMap method

  1. @override
Map<String, Object?> toMap()
override

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(),
  };
}