toJson method
Serializes the object to its JSON representation.
Implementation
@override
Map<String, dynamic> toJson() => {"href": href, "type": type}
..putOpt("title", title)
..putJSONableIfNotEmpty("locations", locations)
..putJSONableIfNotEmpty("text", text);