toJson method

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

Serializes the object to its JSON representation.

Implementation

@override
Map<String, dynamic> toJson() => {}
  ..putJSONableIfNotEmpty("name", localizedName)
  ..putJSONableIfNotEmpty("sortAs", localizedSortAs)
  ..putOpt("scheme", scheme)
  ..putOpt("code", code)
  ..putIterableIfNotEmpty("links", links);