toJson method
List to JSON usingjson.encode
Implementation
String toJson() {
String data = defaultString;
try {
data = json.encode(this);
} on Exception catch (e, s) {
errorLogsNS("ERROR in getJson", e, s);
}
return data;
}
List to JSON usingjson.encode
String toJson() {
String data = defaultString;
try {
data = json.encode(this);
} on Exception catch (e, s) {
errorLogsNS("ERROR in getJson", e, s);
}
return data;
}