build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Sensor build() {
_$Sensor _$result;
try {
_$result = _$v ??
new _$Sensor._(
id: id,
type: type,
name: name,
modelId: modelId,
uniqueId: uniqueId,
manufacturerName: manufacturerName,
swVersion: swVersion,
recycle: recycle,
reachable: reachable,
on: on,
battery: battery,
state: _state?.build(),
config: _config?.build());
} catch (_) {
late String _$failedField;
try {
_$failedField = 'state';
_state?.build();
_$failedField = 'config';
_config?.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Sensor', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}