// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'apply_scans_response.dart';

// **************************************************************************
// BuiltValueGenerator
// **************************************************************************

class _$ApplyScansResponse extends ApplyScansResponse {
  @override
  final BuiltList<ScanResult> results;

  factory _$ApplyScansResponse(
          [void Function(ApplyScansResponseBuilder)? updates]) =>
      (ApplyScansResponseBuilder()..update(updates))._build();

  _$ApplyScansResponse._({required this.results}) : super._();
  @override
  ApplyScansResponse rebuild(
          void Function(ApplyScansResponseBuilder) updates) =>
      (toBuilder()..update(updates)).build();

  @override
  ApplyScansResponseBuilder toBuilder() =>
      ApplyScansResponseBuilder()..replace(this);

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

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, results.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'ApplyScansResponse')
          ..add('results', results))
        .toString();
  }
}

class ApplyScansResponseBuilder
    implements Builder<ApplyScansResponse, ApplyScansResponseBuilder> {
  _$ApplyScansResponse? _$v;

  ListBuilder<ScanResult>? _results;
  ListBuilder<ScanResult> get results =>
      _$this._results ??= ListBuilder<ScanResult>();
  set results(ListBuilder<ScanResult>? results) => _$this._results = results;

  ApplyScansResponseBuilder() {
    ApplyScansResponse._defaults(this);
  }

  ApplyScansResponseBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _results = $v.results.toBuilder();
      _$v = null;
    }
    return this;
  }

  @override
  void replace(ApplyScansResponse other) {
    _$v = other as _$ApplyScansResponse;
  }

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

  @override
  ApplyScansResponse build() => _build();

  _$ApplyScansResponse _build() {
    _$ApplyScansResponse _$result;
    try {
      _$result = _$v ??
          _$ApplyScansResponse._(
            results: results.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'results';
        results.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'ApplyScansResponse', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
