toJson method

  1. @override
Map<String, dynamic> toJson()
override

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;
}