toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (faceIndex != null) _result.addAll({"faceIndex": faceIndex});
  _result.addAll({"landmarks": landmarks});
  if (faceRect != null) _result.addAll({"faceRect": faceRect});
  if (rotationAngle != null) _result.addAll({"rotationAngle": rotationAngle});
  if (thumbnail != null) _result.addAll({"thumbnail": thumbnail});

  return _result;
}