ElectricalNodeDto.protection constructor
const
ElectricalNodeDto.protection({ - required String id,
- required String name,
- @Default(ElectricalState()) ElectricalState state,
- MeasurementState? lastMeasurement,
- @Default(AssetMetadata()) AssetMetadata assetMetadata,
- @Default(ProtectionType.circuitBreaker) ProtectionType protectionType,
- @Default(16) double ratingAmps,
- double? pdc,
- @Default("C") String curve,
- @Default(30.0) double sensitivity,
- @Default(2) int poles,
- @Default([]) List<ElectricalNodeDto> children,
- CatalogMetadata? catalogData,
- CatalogMetadata? cableCatalogData,
})
Implementation
const factory ElectricalNodeDto.protection({
required String id,
required String name,
@Default(ElectricalState()) ElectricalState state,
MeasurementState? lastMeasurement,
@Default(AssetMetadata()) AssetMetadata assetMetadata,
@Default(ProtectionType.circuitBreaker) ProtectionType protectionType,
@Default(16) double ratingAmps,
double? pdc,
@Default("C") String curve,
@Default(30.0) double sensitivity,
@Default(2) int poles,
@Default([]) List<ElectricalNodeDto> children,
CatalogMetadata? catalogData,
CatalogMetadata? cableCatalogData,
}) = ProtectionNodeDto;