mirrored_repositories/SpaceVest-Hackerstellar/chatforum_inctrl/lib/backend
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'dogs_record.dart';

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

Serializer<DogsRecord> _$dogsRecordSerializer = new _$DogsRecordSerializer();

class _$DogsRecordSerializer implements StructuredSerializer<DogsRecord> {
  @override
  final Iterable<Type> types = const [DogsRecord, _$DogsRecord];
  @override
  final String wireName = 'DogsRecord';

  @override
  Iterable<Object?> serialize(Serializers serializers, DogsRecord object,
      {FullType specifiedType = FullType.unspecified}) {
    final result = <Object?>[];
    Object? value;
    value = object.userAssociation;
    if (value != null) {
      result
        ..add('userAssociation')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(
                DocumentReference, const [const FullType.nullable(Object)])));
    }
    value = object.dogPhoto;
    if (value != null) {
      result
        ..add('dogPhoto')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.dogName;
    if (value != null) {
      result
        ..add('dogName')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.dogType;
    if (value != null) {
      result
        ..add('dogType')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.dogAge;
    if (value != null) {
      result
        ..add('dogAge')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.dogBio;
    if (value != null) {
      result
        ..add('dogBio')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.ffRef;
    if (value != null) {
      result
        ..add('Document__Reference__Field')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(
                DocumentReference, const [const FullType.nullable(Object)])));
    }
    return result;
  }

  @override
  DogsRecord deserialize(Serializers serializers, Iterable<Object?> serialized,
      {FullType specifiedType = FullType.unspecified}) {
    final result = new DogsRecordBuilder();

    final iterator = serialized.iterator;
    while (iterator.moveNext()) {
      final key = iterator.current! as String;
      iterator.moveNext();
      final Object? value = iterator.current;
      switch (key) {
        case 'userAssociation':
          result.userAssociation = serializers.deserialize(value,
              specifiedType: const FullType(DocumentReference, const [
                const FullType.nullable(Object)
              ])) as DocumentReference<Object?>?;
          break;
        case 'dogPhoto':
          result.dogPhoto = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'dogName':
          result.dogName = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'dogType':
          result.dogType = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'dogAge':
          result.dogAge = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'dogBio':
          result.dogBio = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'Document__Reference__Field':
          result.ffRef = serializers.deserialize(value,
              specifiedType: const FullType(DocumentReference, const [
                const FullType.nullable(Object)
              ])) as DocumentReference<Object?>?;
          break;
      }
    }

    return result.build();
  }
}

class _$DogsRecord extends DogsRecord {
  @override
  final DocumentReference<Object?>? userAssociation;
  @override
  final String? dogPhoto;
  @override
  final String? dogName;
  @override
  final String? dogType;
  @override
  final String? dogAge;
  @override
  final String? dogBio;
  @override
  final DocumentReference<Object?>? ffRef;

  factory _$DogsRecord([void Function(DogsRecordBuilder)? updates]) =>
      (new DogsRecordBuilder()..update(updates))._build();

  _$DogsRecord._(
      {this.userAssociation,
      this.dogPhoto,
      this.dogName,
      this.dogType,
      this.dogAge,
      this.dogBio,
      this.ffRef})
      : super._();

  @override
  DogsRecord rebuild(void Function(DogsRecordBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is DogsRecord &&
        userAssociation == other.userAssociation &&
        dogPhoto == other.dogPhoto &&
        dogName == other.dogName &&
        dogType == other.dogType &&
        dogAge == other.dogAge &&
        dogBio == other.dogBio &&
        ffRef == other.ffRef;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, userAssociation.hashCode);
    _$hash = $jc(_$hash, dogPhoto.hashCode);
    _$hash = $jc(_$hash, dogName.hashCode);
    _$hash = $jc(_$hash, dogType.hashCode);
    _$hash = $jc(_$hash, dogAge.hashCode);
    _$hash = $jc(_$hash, dogBio.hashCode);
    _$hash = $jc(_$hash, ffRef.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'DogsRecord')
          ..add('userAssociation', userAssociation)
          ..add('dogPhoto', dogPhoto)
          ..add('dogName', dogName)
          ..add('dogType', dogType)
          ..add('dogAge', dogAge)
          ..add('dogBio', dogBio)
          ..add('ffRef', ffRef))
        .toString();
  }
}

class DogsRecordBuilder implements Builder<DogsRecord, DogsRecordBuilder> {
  _$DogsRecord? _$v;

  DocumentReference<Object?>? _userAssociation;
  DocumentReference<Object?>? get userAssociation => _$this._userAssociation;
  set userAssociation(DocumentReference<Object?>? userAssociation) =>
      _$this._userAssociation = userAssociation;

  String? _dogPhoto;
  String? get dogPhoto => _$this._dogPhoto;
  set dogPhoto(String? dogPhoto) => _$this._dogPhoto = dogPhoto;

  String? _dogName;
  String? get dogName => _$this._dogName;
  set dogName(String? dogName) => _$this._dogName = dogName;

  String? _dogType;
  String? get dogType => _$this._dogType;
  set dogType(String? dogType) => _$this._dogType = dogType;

  String? _dogAge;
  String? get dogAge => _$this._dogAge;
  set dogAge(String? dogAge) => _$this._dogAge = dogAge;

  String? _dogBio;
  String? get dogBio => _$this._dogBio;
  set dogBio(String? dogBio) => _$this._dogBio = dogBio;

  DocumentReference<Object?>? _ffRef;
  DocumentReference<Object?>? get ffRef => _$this._ffRef;
  set ffRef(DocumentReference<Object?>? ffRef) => _$this._ffRef = ffRef;

  DogsRecordBuilder() {
    DogsRecord._initializeBuilder(this);
  }

  DogsRecordBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _userAssociation = $v.userAssociation;
      _dogPhoto = $v.dogPhoto;
      _dogName = $v.dogName;
      _dogType = $v.dogType;
      _dogAge = $v.dogAge;
      _dogBio = $v.dogBio;
      _ffRef = $v.ffRef;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$DogsRecord _build() {
    final _$result = _$v ??
        new _$DogsRecord._(
            userAssociation: userAssociation,
            dogPhoto: dogPhoto,
            dogName: dogName,
            dogType: dogType,
            dogAge: dogAge,
            dogBio: dogBio,
            ffRef: ffRef);
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
