toJson method
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;
}
Map to JSON usingjson.encode
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;
}