toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'uuid'] = this.uuid;
  json[r'leadUuid'] = this.leadUuid;
  if (this.loanAmount != null) {
    json[r'loanAmount'] = this.loanAmount;
  } else {
    json[r'loanAmount'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt!.toUtc().toIso8601String();
  } else {
    json[r'createdAt'] = null;
  }
  if (this.embedUrl != null) {
    json[r'embedUrl'] = this.embedUrl;
  } else {
    json[r'embedUrl'] = null;
  }
  if (this.partnerPageUrl != null) {
    json[r'partnerPageUrl'] = this.partnerPageUrl;
  } else {
    json[r'partnerPageUrl'] = null;
  }
  json[r'creditCardOffers'] = this.creditCardOffers;
  json[r'loanOffers'] = this.loanOffers;
  json[r'mortgageOffers'] = this.mortgageOffers;
  json[r'savingsOffers'] = this.savingsOffers;
  json[r'specialOffers'] = this.specialOffers;
  json[r'additionalOffers'] = this.additionalOffers;
  json[r'pendingOriginators'] = this.pendingOriginators;
  json[r'pendingResponses'] = this.pendingResponses;
  return json;
}