create static method

RateLimit create({
  1. String special_type = "rateLimit",
  2. int? limit,
  3. int? remaining,
  4. int? date_reset,
})
override

return original data json

Implementation

static RateLimit create({
  String special_type = "rateLimit",
  int? limit,
  int? remaining,
  int? date_reset,
}) {
  // RateLimit rateLimit = RateLimit({

  RateLimit rateLimit_data_create = RateLimit({
    "@type": special_type,
    "limit": limit,
    "remaining": remaining,
    "date_reset": date_reset,
  });

// return rateLimit;
  return rateLimit_data_create;
}