toJson method
Serializes a PublicationCollection to its RWPM JSON representation.
Implementation
@override
Map<String, dynamic> toJson() {
Map<String, dynamic> json = {
"metadata": metadata,
"links": links.toJson(),
};
subcollections.appendToJsonObject(json);
return json;
}