toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

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

  return _result;
}