toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'leadUuid'] = this.leadUuid;
  json[r'bookedAt'] = this.bookedAt.toUtc().toIso8601String();
  if (this.payoutInCents != null) {
    json[r'payoutInCents'] = this.payoutInCents;
  } else {
    json[r'payoutInCents'] = null;
  }
  if (this.uuid != null) {
    json[r'uuid'] = this.uuid;
  } else {
    json[r'uuid'] = null;
  }
  if (this.deletedAt != null) {
    json[r'deletedAt'] = this.deletedAt!.toUtc().toIso8601String();
  } else {
    json[r'deletedAt'] = null;
  }
  json[r'supplySubAccountUuid'] = this.supplySubAccountUuid;
  json[r'supplySubAccountName'] = this.supplySubAccountName;
  if (this.financialInstitutionName != null) {
    json[r'financialInstitutionName'] = this.financialInstitutionName;
  } else {
    json[r'financialInstitutionName'] = null;
  }
  if (this.financialInstitutionUuid != null) {
    json[r'financialInstitutionUuid'] = this.financialInstitutionUuid;
  } else {
    json[r'financialInstitutionUuid'] = null;
  }
  if (this.unifiedProductType != null) {
    json[r'unifiedProductType'] = this.unifiedProductType;
  } else {
    json[r'unifiedProductType'] = null;
  }
  if (this.productType != null) {
    json[r'productType'] = this.productType;
  } else {
    json[r'productType'] = null;
  }
  json[r'paginationTimestamp'] =
      this.paginationTimestamp.toUtc().toIso8601String();
  return json;
}