toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (exception != null) _result.addAll({"exception": exception!.toJson()});
  if (image != null) _result.addAll({"image": image!.toJson()});

  return _result;
}