create static method

CustomExpiry create({
  1. String? special_type,
  2. int? expiry_duration,
  3. String? unit,
})
override

return original data json

Implementation

static CustomExpiry create({

  String? special_type,
  int? expiry_duration,
  String? unit,
})  {
  CustomExpiry customExpiry = CustomExpiry({

    "@type": special_type,
    "expiry_duration": expiry_duration,
    "unit": unit,


});


return customExpiry;

    }