toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'uuid'] = this.uuid;
  json[r'name'] = this.name;
  json[r'description'] = this.description;
  json[r'disclaimer'] = this.disclaimer;
  json[r'supportsPreSelect'] = this.supportsPreSelect;
  json[r'shouldDisplayPreSelect'] = this.shouldDisplayPreSelect;
  json[r'supportsPersonalizedOffers'] = this.supportsPersonalizedOffers;
  json[r'imageUrl'] = this.imageUrl;
  if (this.subtextOverride != null) {
    json[r'subtextOverride'] = this.subtextOverride;
  } else {
    json[r'subtextOverride'] = null;
  }
  if (this.headquarters != null) {
    json[r'headquarters'] = this.headquarters;
  } else {
    json[r'headquarters'] = null;
  }
  if (this.assets != null) {
    json[r'assets'] = this.assets;
  } else {
    json[r'assets'] = null;
  }
  if (this.brandName != null) {
    json[r'brandName'] = this.brandName;
  } else {
    json[r'brandName'] = null;
  }
  if (this.brandUuid != null) {
    json[r'brandUuid'] = this.brandUuid;
  } else {
    json[r'brandUuid'] = null;
  }
  return json;
}