toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"id": id.toString(),
if (packId != null) "pack_id": packId.toString(),
"name": name,
"description": description,
"tags": tags,
if (asset != null) "asset": asset,
"type": type,
"format_type": formatType,
if (available != null) "available": available,
if (guildId != null) "guild_id": guildId,
if (user != null) "user": user!.toJson(),
if (sortValue != null) "sort_value": sortValue
};
}