

  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder? _device;
  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder get device =>
      _$this._device??=
          new GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder();
  set device(
          GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder? device) =>
      _$this._device = device;

  GmakePowerActionRequestData_actionPowerSetOnBuilder() {
    GmakePowerActionRequestData_actionPowerSetOn._initializeBuilder(this);
  }

  GmakePowerActionRequestData_actionPowerSetOnBuilder get _$this {
    final $v = _$v;
    if ($v!= null) {
      _G__typename = $v.G__typename;
      _actionId = $v.actionId;
      _transactionId = $v.transactionId;
      _device = $v.device.toBuilder();
      _$v = null;
    }
    return this;
  }

  @override
  void replace(GmakePowerActionRequestData_actionPowerSetOn other) {
    ArgumentError.checkNotNull(other, 'other');
    _$v = other as _$GmakePowerActionRequestData_actionPowerSetOn;
  }

  @override
  void update(
      void Function(GmakePowerActionRequestData_actionPowerSetOnBuilder)?
          updates) {
    if (updates!= null) updates(this);
  }

  @override
  _$GmakePowerActionRequestData_actionPowerSetOn build() {
    _$GmakePowerActionRequestData_actionPowerSetOn _$result;
    try {
      _$result = _$v??
          new _$GmakePowerActionRequestData_actionPowerSetOn._(
              G__typename: BuiltValueNullFieldError.checkNotNull(
                  G__typename,
                  'GmakePowerActionRequestData_actionPowerSetOn',
                  'G__typename'),
              actionId: BuiltValueNullFieldError.checkNotNull(actionId,
                  'GmakePowerActionRequestData_actionPowerSetOn', 'actionId'),
              transactionId: BuiltValueNullFieldError.checkNotNull(
                  transactionId,
                  'GmakePowerActionRequestData_actionPowerSetOn',
                  'transactionId'),
              device: device.build());
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'device';
        device.build();
      } catch (e) {
        throw new BuiltValueNestedFieldError(
            'GmakePowerActionRequestData_actionPowerSetOn',
            _$failedField,
            e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

class _$GmakePowerActionRequestData_actionPowerSetOn_device
    extends GmakePowerActionRequestData_actionPowerSetOn_device {
  @override
  final String G__typename;
  @override
  final BuiltList<GmakePowerActionRequestData_actionPowerSetOn_device_traits>
      traits;

  factory _$GmakePowerActionRequestData_actionPowerSetOn_device(
          [void Function(
                  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder)?
              updates]) =>
      (new GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder()
           ..update(updates))
         .build();

  _$GmakePowerActionRequestData_actionPowerSetOn_device._(
      {required this.G__typename, required this.traits})
      : super._() {
    BuiltValueNullFieldError.checkNotNull(G__typename,
        'GmakePowerActionRequestData_actionPowerSetOn_device', 'G__typename');
    BuiltValueNullFieldError.checkNotNull(traits,
        'GmakePowerActionRequestData_actionPowerSetOn_device', 'traits');
  }

  @override
  GmakePowerActionRequestData_actionPowerSetOn_device rebuild(
          void Function(
                  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder)
              updates) =>
      (toBuilder()..update(updates)).build();

  @override
  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder toBuilder() =>
      new GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder()
       ..replace(this);

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is GmakePowerActionRequestData_actionPowerSetOn_device &&
        G__typename == other.G__typename &&
        traits == other.traits;
  }

  @override
  int get hashCode {
    return $jf($jc($jc(0, G__typename.hashCode), traits.hashCode));
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(
            'GmakePowerActionRequestData_actionPowerSetOn_device')
         ..add('G__typename', G__typename)
         ..add('traits', traits))
       .toString();
  }
}

class GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder
    implements
        Builder<GmakePowerActionRequestData_actionPowerSetOn_device,
            GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder> {
  _$GmakePowerActionRequestData_actionPowerSetOn_device? _$v;

  String? _G__typename;
  String? get G__typename => _$this._G__typename;
  set G__typename(String? G__typename) => _$this._G__typename = G__typename;

  ListBuilder<GmakePowerActionRequestData_actionPowerSetOn_device_traits>?
      _traits;
  ListBuilder<GmakePowerActionRequestData_actionPowerSetOn_device_traits>
      get traits => _$this._traits??= new ListBuilder<
          GmakePowerActionRequestData_actionPowerSetOn_device_traits>();
  set traits(
          ListBuilder<
                  GmakePowerActionRequestData_actionPowerSetOn_device_traits>?
              traits) =>
      _$this._traits = traits;

  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder() {
    GmakePowerActionRequestData_actionPowerSetOn_device._initializeBuilder(
        this);
  }

  GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder get _$this {
    final $v = _$v;
    if ($v!= null) {
      _G__typename = $v.G__typename;
      _traits = $v.traits.toBuilder();
      _$v = null;
    }
    return this;
  }

  @override
  void replace(GmakePowerActionRequestData_actionPowerSetOn_device other) {
    ArgumentError.checkNotNull(other, 'other');
    _$v = other as _$GmakePowerActionRequestData_actionPowerSetOn_device;
  }

  @override
  void update(
      void Function(GmakePowerActionRequestData_actionPowerSetOn_deviceBuilder)?
          updates) {
    if (updates!= null) updates(this);
  }

  @override
  _$GmakePowerActionRequestData_actionPowerSetOn_device build() {
    _$GmakePowerActionRequestData_actionPowerSetOn_device _$result;
    try {
      _$result = _$v??
          new _$GmakePowerActionRequestData_actionPowerSetOn_device._(
              G__typename: BuiltValueNullFieldError.checkNotNull(
                  G__typename,
                  'GmakePowerActionRequestData_actionPowerSetOn_device',
                  'G__typename'),
              traits: traits.build());
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'traits';
        traits.build();
      } catch (e) {
        throw new BuiltValueNestedFieldError(
            'GmakePowerActionRequestData_actionPowerSetOn_device',
            _$failedField,
            e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

class _$GmakePowerActionRequestData_actionPowerSetOn_device_traits__base
    extends GmakePowerActionRequestData_actionPowerSetOn_device_traits__base {
  @override
  final String G__typename;
  @override
  final _i