///
/// QuantityDateInterval.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

import NitroModules

/**
 * Represents an instance of `QuantityDateInterval`, backed by a C++ struct.
 */
public typealias QuantityDateInterval = margelo.nitro.healthkit.QuantityDateInterval

public extension QuantityDateInterval {
  private typealias bridge = margelo.nitro.healthkit.bridge.swift

  /**
   * Create a new instance of `QuantityDateInterval`.
   */
  init(from: Date, to: Date) {
    self.init(from.toCpp(), to.toCpp())
  }

  @inline(__always)
  var from: Date {
    return Date(fromChrono: self.__from)
  }
  
  @inline(__always)
  var to: Date {
    return Date(fromChrono: self.__to)
  }
}
