toJson method Null safety

Json toJson()

Returns the json representation of this instance

Implementation

Json toJson();