toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'id'] = this.id;
  json[r'leadUuid'] = this.leadUuid;
  json[r'leadCreatedAt'] = this.leadCreatedAt.toUtc().toIso8601String();
  json[r'eventType'] = this.eventType;
  json[r'eventCreatedAt'] = this.eventCreatedAt.toUtc().toIso8601String();
  if (this.eventDeletedAt != null) {
    json[r'eventDeletedAt'] = this.eventDeletedAt!.toUtc().toIso8601String();
  } else {
    json[r'eventDeletedAt'] = null;
  }
  if (this.eventData != null) {
    json[r'eventData'] = this.eventData;
  } else {
    json[r'eventData'] = null;
  }
  if (this.amountInCents != null) {
    json[r'amountInCents'] = this.amountInCents;
  } else {
    json[r'amountInCents'] = null;
  }
  json[r'supplySubAccountUuid'] = this.supplySubAccountUuid;
  json[r'supplySubAccountName'] = this.supplySubAccountName;
  if (this.financialInstitutionUuid != null) {
    json[r'financialInstitutionUuid'] = this.financialInstitutionUuid;
  } else {
    json[r'financialInstitutionUuid'] = null;
  }
  if (this.financialInstitutionName != null) {
    json[r'financialInstitutionName'] = this.financialInstitutionName;
  } else {
    json[r'financialInstitutionName'] = 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;
  }
  if (this.productSubType != null) {
    json[r'productSubType'] = this.productSubType;
  } else {
    json[r'productSubType'] = null;
  }
  if (this.offerUuid != null) {
    json[r'offerUuid'] = this.offerUuid;
  } else {
    json[r'offerUuid'] = null;
  }
  json[r'isTest'] = this.isTest;
  json[r'paginationTimestamp'] =
      this.paginationTimestamp.toUtc().toIso8601String();
  return json;
}