toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  if (status != null) 'status': status,
  if (isPhotoValid != null) 'isPhotoValid': isPhotoValid,
  if (traceId != null) 'traceId': traceId,
  if (errorCodeFromEngine != null) 'errorCodeFromEngine': errorCodeFromEngine,
  if (message != null) 'message': message,
  if (imageId != null) 'imageId': imageId,
  if (result != null) 'result': result?.toJson(),
};