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

part of 'story_comments_record.dart';

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

Serializer<StoryCommentsRecord> _$storyCommentsRecordSerializer =
    new _$StoryCommentsRecordSerializer();

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

  @override
  Iterable<Object?> serialize(
      Serializers serializers, StoryCommentsRecord object,
      {FullType specifiedType = FullType.unspecified}) {
    final result = <Object?>[];
    Object? value;
    value = object.storyAssociation;
    if (value != null) {
      result
        ..add('storyAssociation')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(
                DocumentReference, const [const FullType.nullable(Object)])));
    }
    value = object.commentUser;
    if (value != null) {
      result
        ..add('commentUser')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(
                DocumentReference, const [const FullType.nullable(Object)])));
    }
    value = object.comment;
    if (value != null) {
      result
        ..add('comment')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(String)));
    }
    value = object.timePosted;
    if (value != null) {
      result
        ..add('timePosted')
        ..add(serializers.serialize(value,
            specifiedType: const FullType(DateTime)));
    }
    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
  StoryCommentsRecord deserialize(
      Serializers serializers, Iterable<Object?> serialized,
      {FullType specifiedType = FullType.unspecified}) {
    final result = new StoryCommentsRecordBuilder();

    final iterator = serialized.iterator;
    while (iterator.moveNext()) {
      final key = iterator.current! as String;
      iterator.moveNext();
      final Object? value = iterator.current;
      switch (key) {
        case 'storyAssociation':
          result.storyAssociation = serializers.deserialize(value,
              specifiedType: const FullType(DocumentReference, const [
                const FullType.nullable(Object)
              ])) as DocumentReference<Object?>?;
          break;
        case 'commentUser':
          result.commentUser = serializers.deserialize(value,
              specifiedType: const FullType(DocumentReference, const [
                const FullType.nullable(Object)
              ])) as DocumentReference<Object?>?;
          break;
        case 'comment':
          result.comment = serializers.deserialize(value,
              specifiedType: const FullType(String)) as String?;
          break;
        case 'timePosted':
          result.timePosted = serializers.deserialize(value,
              specifiedType: const FullType(DateTime)) as DateTime?;
          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 _$StoryCommentsRecord extends StoryCommentsRecord {
  @override
  final DocumentReference<Object?>? storyAssociation;
  @override
  final DocumentReference<Object?>? commentUser;
  @override
  final String? comment;
  @override
  final DateTime? timePosted;
  @override
  final DocumentReference<Object?>? ffRef;

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

  _$StoryCommentsRecord._(
      {this.storyAssociation,
      this.commentUser,
      this.comment,
      this.timePosted,
      this.ffRef})
      : super._();

  @override
  StoryCommentsRecord rebuild(
          void Function(StoryCommentsRecordBuilder) updates) =>
      (toBuilder()..update(updates)).build();

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

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is StoryCommentsRecord &&
        storyAssociation == other.storyAssociation &&
        commentUser == other.commentUser &&
        comment == other.comment &&
        timePosted == other.timePosted &&
        ffRef == other.ffRef;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, storyAssociation.hashCode);
    _$hash = $jc(_$hash, commentUser.hashCode);
    _$hash = $jc(_$hash, comment.hashCode);
    _$hash = $jc(_$hash, timePosted.hashCode);
    _$hash = $jc(_$hash, ffRef.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'StoryCommentsRecord')
          ..add('storyAssociation', storyAssociation)
          ..add('commentUser', commentUser)
          ..add('comment', comment)
          ..add('timePosted', timePosted)
          ..add('ffRef', ffRef))
        .toString();
  }
}

class StoryCommentsRecordBuilder
    implements Builder<StoryCommentsRecord, StoryCommentsRecordBuilder> {
  _$StoryCommentsRecord? _$v;

  DocumentReference<Object?>? _storyAssociation;
  DocumentReference<Object?>? get storyAssociation => _$this._storyAssociation;
  set storyAssociation(DocumentReference<Object?>? storyAssociation) =>
      _$this._storyAssociation = storyAssociation;

  DocumentReference<Object?>? _commentUser;
  DocumentReference<Object?>? get commentUser => _$this._commentUser;
  set commentUser(DocumentReference<Object?>? commentUser) =>
      _$this._commentUser = commentUser;

  String? _comment;
  String? get comment => _$this._comment;
  set comment(String? comment) => _$this._comment = comment;

  DateTime? _timePosted;
  DateTime? get timePosted => _$this._timePosted;
  set timePosted(DateTime? timePosted) => _$this._timePosted = timePosted;

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

  StoryCommentsRecordBuilder() {
    StoryCommentsRecord._initializeBuilder(this);
  }

  StoryCommentsRecordBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _storyAssociation = $v.storyAssociation;
      _commentUser = $v.commentUser;
      _comment = $v.comment;
      _timePosted = $v.timePosted;
      _ffRef = $v.ffRef;
      _$v = null;
    }
    return this;
  }

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

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

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

  _$StoryCommentsRecord _build() {
    final _$result = _$v ??
        new _$StoryCommentsRecord._(
            storyAssociation: storyAssociation,
            commentUser: commentUser,
            comment: comment,
            timePosted: timePosted,
            ffRef: ffRef);
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
