fromDurationDataScheme method

Duration fromDurationDataScheme(
  1. DurationDataScheme durationData
)

Implementation

Duration fromDurationDataScheme(DurationDataScheme durationData) {
  return Duration(
    days: durationData.days ?? 0,
    hours: durationData.hours ?? 0,
    minutes: durationData.minutes ?? 0,
    seconds: durationData.seconds ?? 0,
    milliseconds: durationData.milliseconds ?? 0,
    microseconds: durationData.microseconds ?? 0,
  );
}