toMap method

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

Implementation

@override
Map<String, Object?> toMap() {
  return {
    if (icons != null) 'icons': icons!.map((e) => e.toMap()).toList(),
    'name': name,
    if (title != null) 'title': title,
    'uri': uri,
    if (description != null) 'description': description,
    if (mimeType != null) 'mimeType': mimeType,
    if (annotations != null) 'annotations': annotations!.toMap(),
    if (size != null) 'size': size,
    if ($meta != null) '_meta': $meta!.toMap(),
  };
}