toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (scenario != null) _result.addAll({"scenario": scenario});
  if (livePortrait != null) _result.addAll({"livePortrait": livePortrait});
  if (extPortrait != null) _result.addAll({"extPortrait": extPortrait});
  if (onlineProcessingConfig != null) _result.addAll({"onlineProcessingConfig": onlineProcessingConfig});
  if (image != null) _result.addAll({"image": image});
  if (oneShotIdentification != null) _result.addAll({"oneShotIdentification": oneShotIdentification});
  _result.addAll({"images": images});
  _result.addAll({"imageInputData": imageInputData});

  return _result;
}