SourceNodeDto class abstract

Implemented types
Available extensions

Constructors

SourceNodeDto({required String id, required String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children})
const
factory
SourceNodeDto.fromJson(Map<String, dynamic> json)
factory

Properties

assetMetadata AssetMetadata
no setteroverride
children List<ElectricalNodeDto>
no setter
copyWith → _$$SourceNodeDtoImplCopyWith<_$SourceNodeDtoImpl>
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
no setteroverride
lastMeasurement MeasurementState?
no setteroverride
mainFeedCable ConductorAttributes?
no setter
name String
no setteroverride
nominalVoltage double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortCircuitCapacity double
no setter
state ElectricalState
no setteroverride

Methods

map<TResult extends Object?>({required TResult source(SourceNodeDto value), required TResult panel(PanelNodeDto value), required TResult protection(ProtectionNodeDto value), required TResult load(LoadNodeDto value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? source(SourceNodeDto value)?, TResult? panel(PanelNodeDto value)?, TResult? protection(ProtectionNodeDto value)?, TResult? load(LoadNodeDto value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult source(SourceNodeDto value)?, TResult panel(PanelNodeDto value)?, TResult protection(ProtectionNodeDto value)?, TResult load(LoadNodeDto value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDomain() ElectricalNode

Available on ElectricalNodeDto, provided by the ElectricalNodeDtoX extension

toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children), required TResult panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children), required TResult protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData), required TResult load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? source(String id, String name, ElectricalState state, double nominalVoltage, double shortCircuitCapacity, ConductorAttributes? mainFeedCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult? panel(String id, String name, ElectricalState state, double nominalVoltage, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, List<ElectricalNodeDto> children)?, TResult? protection(String id, String name, ElectricalState state, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, ProtectionType protectionType, double ratingAmps, double? pdc, String curve, double sensitivity, int poles, List<ElectricalNodeDto> children, CatalogMetadata? catalogData, CatalogMetadata? cableCatalogData)?, TResult? load(String id, String name, ElectricalState state, ConductorAttributes? inputCable, MeasurementState? lastMeasurement, AssetMetadata assetMetadata, double powerWatts, double cosPhi, LoadType type, bool isThreePhase, CatalogMetadata? cableCatalogData)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited