create static method

Expiry create({
  1. String? special_type,
  2. String? start_time,
  3. int? duration,
  4. String? unit,
})
override

return original data json

Implementation

static Expiry create({

  String? special_type,
  String? start_time,
  int? duration,
  String? unit,
})  {
  Expiry expiry = Expiry({

    "@type": special_type,
    "start_time": start_time,
    "duration": duration,
    "unit": unit,


});


return expiry;

    }