/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { DeviceTypeElement } from "../elements/index.js";
import { Model } from "./Model.js";
import { RequirementModel } from "./RequirementModel.js";
class DeviceTypeModel extends Model {
  tag = DeviceTypeElement.Tag;
  get children() {
    return super.children;
  }
  set children(children) {
    super.children = children;
  }
  get requirements() {
    return this.all(RequirementModel);
  }
  get revision() {
    return this?.get(RequirementModel, "Descriptor")?.get(RequirementModel, "DeviceTypeList")?.default[0].revision ?? 1;
  }
  static {
    Model.types[DeviceTypeElement.Tag] = this;
  }
}
export {
  DeviceTypeModel
};
//# sourceMappingURL=DeviceTypeModel.js.map
