create static method

DurationDataScheme create({
  1. String? special_type,
  2. int? days,
  3. int? hours,
  4. int? minutes,
  5. int? seconds,
  6. int? milliseconds,
  7. int? microseconds,
})
override

return original data json

Implementation

static DurationDataScheme create({
  String? special_type,
  int? days,
  int? hours,
  int? minutes,
  int? seconds,
  int? milliseconds,
  int? microseconds,
}) {
  DurationDataScheme durationDataScheme = DurationDataScheme({
    "@type": special_type,
    "days": days,
    "hours": hours,
    "minutes": minutes,
    "seconds": seconds,
    "milliseconds": milliseconds,
    "microseconds": microseconds,
  });

  return durationDataScheme;
}