toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.consentsToFcra != null) {
    json[r'consentsToFcra'] = this.consentsToFcra;
  } else {
    json[r'consentsToFcra'] = null;
  }
  if (this.consentsToSms != null) {
    json[r'consentsToSms'] = this.consentsToSms;
  } else {
    json[r'consentsToSms'] = null;
  }
  if (this.consentsToTcpa != null) {
    json[r'consentsToTcpa'] = this.consentsToTcpa;
  } else {
    json[r'consentsToTcpa'] = null;
  }
  if (this.batchConsentVersion != null) {
    json[r'batchConsentVersion'] = this.batchConsentVersion;
  } else {
    json[r'batchConsentVersion'] = null;
  }
  if (this.fcraLanguage != null) {
    json[r'fcraLanguage'] = this.fcraLanguage;
  } else {
    json[r'fcraLanguage'] = null;
  }
  if (this.tcpaLanguage != null) {
    json[r'tcpaLanguage'] = this.tcpaLanguage;
  } else {
    json[r'tcpaLanguage'] = null;
  }
  if (this.batchConsentLanguage != null) {
    json[r'batchConsentLanguage'] = this.batchConsentLanguage;
  } else {
    json[r'batchConsentLanguage'] = null;
  }
  return json;
}