toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

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

  return _result;
}