toJson method

String toJson()

Serializes the object to JSON.

Implementation

String toJson() {
  return json.encode(<String, String?>{
    'methodName': methodName,
    'details': details,
  });
}