toModel method

MuteDuration toModel()

Constructs a new MuteDuration from this Muting.

Implementation

MuteDuration toModel() {
  if (duration == null) {
    return MuteDuration.forever();
  }

  return MuteDuration.until(duration!);
}