Converts this instance to a JSON String.
String toJson() { var jsonObject = toMap(); var json = jsonEncode(jsonObject); return json; }