toJson method Null safety

String toJson()

Implementation

String toJson() => json.encode(toMap());