toJson method
Serializes a Contributor to its RWPM JSON representation.
Implementation
@override
Map<String, dynamic> toJson() => {}
..putJSONableIfNotEmpty("name", localizedName)
..putOpt("identifier", identifier)
..putJSONableIfNotEmpty("sortAs", localizedSortAs)
..putIterableIfNotEmpty("role", roles)
..putOpt("position", position)
..putIterableIfNotEmpty("links", links);