create static method

CreditCard create({
  1. String? special_type,
  2. bool? secure,
  3. String? bank,
  4. Installment? installment,
})
override

return original data json

Implementation

static CreditCard create({

  String? special_type,
  bool? secure,
  String? bank,
    Installment? installment,
})  {
  CreditCard creditCard = CreditCard({

    "@type": special_type,
    "secure": secure,
    "bank": bank,
    "installment": (installment != null)?installment.toJson(): null,


});


return creditCard;

    }