toJson method

String toJson()

Creates a JSON string representing this Contact instance.

The resulting JSON string can be parsed back using Contact.fromJson.

Implementation

String toJson() => jsonEncode(toMap());