toJson method Null safety

String toJson()

Implementation

String toJson() {
  return this.toString();
}