parameterToString function

String parameterToString(
  1. dynamic value
)

Format the given parameter object into a String.

Implementation

String parameterToString(dynamic value) {
  if (value == null) {
    return '';
  }
  if (value is DateTime) {
    return value.toUtc().toIso8601String();
  }
  if (value is AprType) {
    return AprTypeTypeTransformer().encode(value).toString();
  }
  if (value is BankAccountType) {
    return BankAccountTypeTypeTransformer().encode(value).toString();
  }
  if (value is BatchConsentVersion) {
    return BatchConsentVersionTypeTransformer().encode(value).toString();
  }
  if (value is CardBenefit) {
    return CardBenefitTypeTransformer().encode(value).toString();
  }
  if (value is CardPurpose) {
    return CardPurposeTypeTransformer().encode(value).toString();
  }
  if (value is CardType) {
    return CardTypeTypeTransformer().encode(value).toString();
  }
  if (value is CarrierDecisionType) {
    return CarrierDecisionTypeTypeTransformer().encode(value).toString();
  }
  if (value is CitizenshipStatus) {
    return CitizenshipStatusTypeTransformer().encode(value).toString();
  }
  if (value is CompoundingMethod) {
    return CompoundingMethodTypeTransformer().encode(value).toString();
  }
  if (value is EducationLevel) {
    return EducationLevelTypeTransformer().encode(value).toString();
  }
  if (value is EmploymentPayFrequency) {
    return EmploymentPayFrequencyTypeTransformer().encode(value).toString();
  }
  if (value is EmploymentStatus) {
    return EmploymentStatusTypeTransformer().encode(value).toString();
  }
  if (value is EventType) {
    return EventTypeTypeTransformer().encode(value).toString();
  }
  if (value is FederalInsuranceType) {
    return FederalInsuranceTypeTypeTransformer().encode(value).toString();
  }
  if (value is Gender) {
    return GenderTypeTransformer().encode(value).toString();
  }
  if (value is GraduateDegreeType) {
    return GraduateDegreeTypeTypeTransformer().encode(value).toString();
  }
  if (value is IdType) {
    return IdTypeTypeTransformer().encode(value).toString();
  }
  if (value is IncentiveType) {
    return IncentiveTypeTypeTransformer().encode(value).toString();
  }
  if (value is IncentiveUnit) {
    return IncentiveUnitTypeTransformer().encode(value).toString();
  }
  if (value is IntroOfferType) {
    return IntroOfferTypeTypeTransformer().encode(value).toString();
  }
  if (value is LeadActionType) {
    return LeadActionTypeTypeTransformer().encode(value).toString();
  }
  if (value is LeadBestTimeToCall) {
    return LeadBestTimeToCallTypeTransformer().encode(value).toString();
  }
  if (value is LoanPurpose) {
    return LoanPurposeTypeTransformer().encode(value).toString();
  }
  if (value is MaritalStatus) {
    return MaritalStatusTypeTransformer().encode(value).toString();
  }
  if (value is MedicalExam) {
    return MedicalExamTypeTransformer().encode(value).toString();
  }
  if (value is MortechCreditRating) {
    return MortechCreditRatingTypeTransformer().encode(value).toString();
  }
  if (value is MortgageAdjustmentType) {
    return MortgageAdjustmentTypeTypeTransformer().encode(value).toString();
  }
  if (value is MortgageLoanType) {
    return MortgageLoanTypeTypeTransformer().encode(value).toString();
  }
  if (value is MortgageType) {
    return MortgageTypeTypeTransformer().encode(value).toString();
  }
  if (value is OccupancyType) {
    return OccupancyTypeTypeTransformer().encode(value).toString();
  }
  if (value is PackageType) {
    return PackageTypeTypeTransformer().encode(value).toString();
  }
  if (value is PersonalReferenceRelationType) {
    return PersonalReferenceRelationTypeTypeTransformer()
        .encode(value)
        .toString();
  }
  if (value is ProductSubType) {
    return ProductSubTypeTypeTransformer().encode(value).toString();
  }
  if (value is ProductType) {
    return ProductTypeTypeTransformer().encode(value).toString();
  }
  if (value is PropertySearchStatus) {
    return PropertySearchStatusTypeTransformer().encode(value).toString();
  }
  if (value is PropertyStatus) {
    return PropertyStatusTypeTransformer().encode(value).toString();
  }
  if (value is PropertyType) {
    return PropertyTypeTypeTransformer().encode(value).toString();
  }
  if (value is ProvidedCreditRating) {
    return ProvidedCreditRatingTypeTransformer().encode(value).toString();
  }
  if (value is PurchaseStatus) {
    return PurchaseStatusTypeTransformer().encode(value).toString();
  }
  if (value is RefinanceLoanType) {
    return RefinanceLoanTypeTypeTransformer().encode(value).toString();
  }
  if (value is RefinanceType) {
    return RefinanceTypeTypeTransformer().encode(value).toString();
  }
  if (value is RejectReason) {
    return RejectReasonTypeTransformer().encode(value).toString();
  }
  if (value is State) {
    return StateTypeTransformer().encode(value).toString();
  }
  if (value is TermUnit) {
    return TermUnitTypeTransformer().encode(value).toString();
  }
  return value.toString();
}