toJson method
Serializes the object to JSON.
Implementation
String toJson() {
return json.encode(<String, String?>{'methodName': methodName, 'details': details});
}
Serializes the object to JSON.
String toJson() {
return json.encode(<String, String?>{'methodName': methodName, 'details': details});
}