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'desc'] = this.desc;
  json[r'url'] = this.url;
  json[r'partnerName'] = this.partnerName;
  json[r'partnerImageUrl'] = this.partnerImageUrl;
  if (this.recommendationScore != null) {
    json[r'recommendationScore'] = this.recommendationScore;
  } else {
    json[r'recommendationScore'] = null;
  }
  if (this.payout != null) {
    json[r'payout'] = this.payout;
  } else {
    json[r'payout'] = null;
  }
  json[r'productSubType'] = this.productSubType;
  if (this.disclaimer != null) {
    json[r'disclaimer'] = this.disclaimer;
  } else {
    json[r'disclaimer'] = null;
  }
  if (this.financialInstitutionUuid != null) {
    json[r'financialInstitutionUuid'] = this.financialInstitutionUuid;
  } else {
    json[r'financialInstitutionUuid'] = null;
  }
  return json;
}