toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.balanced != null) {
    json[r'balanced'] = this.balanced;
  } else {
    json[r'balanced'] = null;
  }
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  if (this.confidence != null) {
    json[r'confidence'] = this.confidence;
  } else {
    json[r'confidence'] = null;
  }
  if (this.extracted != null) {
    json[r'extracted'] = this.extracted;
  } else {
    json[r'extracted'] = null;
  }
    json[r'questions'] = this.questions;
  if (this.scanId != null) {
    json[r'scanId'] = this.scanId;
  } else {
    json[r'scanId'] = null;
  }
  if (this.vendor != null) {
    json[r'vendor'] = this.vendor;
  } else {
    json[r'vendor'] = null;
  }
  if (this.voucher != null) {
    json[r'voucher'] = this.voucher;
  } else {
    json[r'voucher'] = null;
  }
  return json;
}