toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

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

  return _result;
}