toJson method

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

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