toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "id": id,
      "type": type,
      "description": description,
      "metadata": metadata,
      "enabled": enabled,
      "media": List<dynamic>.from(media.map((x) => x.toMap())),
    };