toJson method
Implementation
Map toJson() {
Map _result = {};
if (success != null) _result.addAll({"success": success});
if (error != null) _result.addAll({"error": error!.toJson()});
return _result;
}
Map toJson() {
Map _result = {};
if (success != null) _result.addAll({"success": success});
if (error != null) _result.addAll({"error": error!.toJson()});
return _result;
}