toJson method

String toJson()

Map to JSON usingjson.encode

Implementation

String toJson() {
  String data = "{}";
  try {
    data = json.encode(this);
  } on Exception catch (e, s) {
    errorLogsNS("Error in toJson\n\n *$this* ", e, s);
  }
  return data;
}