toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> _data = <String, dynamic>{};
_data["id"] = id;
_data["name"] = name;
_data["description"] = description;
if (collection != null) {
_data["collection"] = collection?.toJson();
}
return _data;
}