LCOV - code coverage report
Current view: top level - document - document.freezed.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 161 3.7 %
Date: 2021-05-31 17:15:31 Functions: 0 0 -

          Line data    Source code
       1             : // GENERATED CODE - DO NOT MODIFY BY HAND
       2             : // ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides
       3             : 
       4             : part of 'document.dart';
       5             : 
       6             : // **************************************************************************
       7             : // FreezedGenerator
       8             : // **************************************************************************
       9             : 
      10           0 : T _$identity<T>(T value) => value;
      11             : 
      12           0 : final _privateConstructorUsedError = UnsupportedError(
      13             :     'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
      14             : 
      15           6 : Document _$DocumentFromJson(Map<String, dynamic> json) {
      16           6 :   return _Document.fromJson(json);
      17             : }
      18             : 
      19             : /// @nodoc
      20             : class _$DocumentTearOff {
      21           7 :   const _$DocumentTearOff();
      22             : 
      23           0 :   _Document call(
      24             :       {@JsonKey(name: 'alternate_languages')
      25             :           List<AlternateLanguage>? alternateLanguages,
      26             :       @JsonKey(name: 'first_publication_date')
      27             :           String? firstPublicationDate,
      28             :       @JsonKey(name: 'last_publication_date')
      29             :           String? lastPublicationDate,
      30             :       @JsonKey(name: 'linked_documents')
      31             :           List<String>? linkedDocuments,
      32             :       required List<String> tags,
      33             :       required String id,
      34             :       required String lang,
      35             :       required String type,
      36             :       Map<String, dynamic>? data,
      37             :       List<String>? slugs,
      38             :       String? href,
      39             :       String? uid}) {
      40           0 :     return _Document(
      41             :       alternateLanguages: alternateLanguages,
      42             :       firstPublicationDate: firstPublicationDate,
      43             :       lastPublicationDate: lastPublicationDate,
      44             :       linkedDocuments: linkedDocuments,
      45             :       tags: tags,
      46             :       id: id,
      47             :       lang: lang,
      48             :       type: type,
      49             :       data: data,
      50             :       slugs: slugs,
      51             :       href: href,
      52             :       uid: uid,
      53             :     );
      54             :   }
      55             : 
      56           0 :   Document fromJson(Map<String, Object> json) {
      57           0 :     return Document.fromJson(json);
      58             :   }
      59             : }
      60             : 
      61             : /// @nodoc
      62             : const $Document = _$DocumentTearOff();
      63             : 
      64             : /// @nodoc
      65             : mixin _$Document {
      66           0 :   @JsonKey(name: 'alternate_languages')
      67             :   List<AlternateLanguage>? get alternateLanguages =>
      68           0 :       throw _privateConstructorUsedError;
      69           0 :   @JsonKey(name: 'first_publication_date')
      70           0 :   String? get firstPublicationDate => throw _privateConstructorUsedError;
      71           0 :   @JsonKey(name: 'last_publication_date')
      72           0 :   String? get lastPublicationDate => throw _privateConstructorUsedError;
      73           0 :   @JsonKey(name: 'linked_documents')
      74           0 :   List<String>? get linkedDocuments => throw _privateConstructorUsedError;
      75           0 :   List<String> get tags => throw _privateConstructorUsedError;
      76           0 :   String get id => throw _privateConstructorUsedError;
      77           0 :   String get lang => throw _privateConstructorUsedError;
      78           0 :   String get type => throw _privateConstructorUsedError;
      79           0 :   Map<String, dynamic>? get data => throw _privateConstructorUsedError;
      80           0 :   List<String>? get slugs => throw _privateConstructorUsedError;
      81           0 :   String? get href => throw _privateConstructorUsedError;
      82           0 :   String? get uid => throw _privateConstructorUsedError;
      83             : 
      84           0 :   Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
      85           0 :   @JsonKey(ignore: true)
      86             :   $DocumentCopyWith<Document> get copyWith =>
      87           0 :       throw _privateConstructorUsedError;
      88             : }
      89             : 
      90             : /// @nodoc
      91             : abstract class $DocumentCopyWith<$Res> {
      92             :   factory $DocumentCopyWith(Document value, $Res Function(Document) then) =
      93             :       _$DocumentCopyWithImpl<$Res>;
      94             :   $Res call(
      95             :       {@JsonKey(name: 'alternate_languages')
      96             :           List<AlternateLanguage>? alternateLanguages,
      97             :       @JsonKey(name: 'first_publication_date')
      98             :           String? firstPublicationDate,
      99             :       @JsonKey(name: 'last_publication_date')
     100             :           String? lastPublicationDate,
     101             :       @JsonKey(name: 'linked_documents')
     102             :           List<String>? linkedDocuments,
     103             :       List<String> tags,
     104             :       String id,
     105             :       String lang,
     106             :       String type,
     107             :       Map<String, dynamic>? data,
     108             :       List<String>? slugs,
     109             :       String? href,
     110             :       String? uid});
     111             : }
     112             : 
     113             : /// @nodoc
     114             : class _$DocumentCopyWithImpl<$Res> implements $DocumentCopyWith<$Res> {
     115           0 :   _$DocumentCopyWithImpl(this._value, this._then);
     116             : 
     117             :   final Document _value;
     118             :   // ignore: unused_field
     119             :   final $Res Function(Document) _then;
     120             : 
     121           0 :   @override
     122             :   $Res call({
     123             :     Object? alternateLanguages = freezed,
     124             :     Object? firstPublicationDate = freezed,
     125             :     Object? lastPublicationDate = freezed,
     126             :     Object? linkedDocuments = freezed,
     127             :     Object? tags = freezed,
     128             :     Object? id = freezed,
     129             :     Object? lang = freezed,
     130             :     Object? type = freezed,
     131             :     Object? data = freezed,
     132             :     Object? slugs = freezed,
     133             :     Object? href = freezed,
     134             :     Object? uid = freezed,
     135             :   }) {
     136           0 :     return _then(_value.copyWith(
     137           0 :       alternateLanguages: alternateLanguages == freezed
     138           0 :           ? _value.alternateLanguages
     139             :           : alternateLanguages // ignore: cast_nullable_to_non_nullable
     140             :               as List<AlternateLanguage>?,
     141           0 :       firstPublicationDate: firstPublicationDate == freezed
     142           0 :           ? _value.firstPublicationDate
     143             :           : firstPublicationDate // ignore: cast_nullable_to_non_nullable
     144             :               as String?,
     145           0 :       lastPublicationDate: lastPublicationDate == freezed
     146           0 :           ? _value.lastPublicationDate
     147             :           : lastPublicationDate // ignore: cast_nullable_to_non_nullable
     148             :               as String?,
     149           0 :       linkedDocuments: linkedDocuments == freezed
     150           0 :           ? _value.linkedDocuments
     151             :           : linkedDocuments // ignore: cast_nullable_to_non_nullable
     152             :               as List<String>?,
     153           0 :       tags: tags == freezed
     154           0 :           ? _value.tags
     155             :           : tags // ignore: cast_nullable_to_non_nullable
     156             :               as List<String>,
     157           0 :       id: id == freezed
     158           0 :           ? _value.id
     159             :           : id // ignore: cast_nullable_to_non_nullable
     160             :               as String,
     161           0 :       lang: lang == freezed
     162           0 :           ? _value.lang
     163             :           : lang // ignore: cast_nullable_to_non_nullable
     164             :               as String,
     165           0 :       type: type == freezed
     166           0 :           ? _value.type
     167             :           : type // ignore: cast_nullable_to_non_nullable
     168             :               as String,
     169           0 :       data: data == freezed
     170           0 :           ? _value.data
     171             :           : data // ignore: cast_nullable_to_non_nullable
     172             :               as Map<String, dynamic>?,
     173           0 :       slugs: slugs == freezed
     174           0 :           ? _value.slugs
     175             :           : slugs // ignore: cast_nullable_to_non_nullable
     176             :               as List<String>?,
     177           0 :       href: href == freezed
     178           0 :           ? _value.href
     179             :           : href // ignore: cast_nullable_to_non_nullable
     180             :               as String?,
     181           0 :       uid: uid == freezed
     182           0 :           ? _value.uid
     183             :           : uid // ignore: cast_nullable_to_non_nullable
     184             :               as String?,
     185             :     ));
     186             :   }
     187             : }
     188             : 
     189             : /// @nodoc
     190             : abstract class _$DocumentCopyWith<$Res> implements $DocumentCopyWith<$Res> {
     191             :   factory _$DocumentCopyWith(_Document value, $Res Function(_Document) then) =
     192             :       __$DocumentCopyWithImpl<$Res>;
     193             :   @override
     194             :   $Res call(
     195             :       {@JsonKey(name: 'alternate_languages')
     196             :           List<AlternateLanguage>? alternateLanguages,
     197             :       @JsonKey(name: 'first_publication_date')
     198             :           String? firstPublicationDate,
     199             :       @JsonKey(name: 'last_publication_date')
     200             :           String? lastPublicationDate,
     201             :       @JsonKey(name: 'linked_documents')
     202             :           List<String>? linkedDocuments,
     203             :       List<String> tags,
     204             :       String id,
     205             :       String lang,
     206             :       String type,
     207             :       Map<String, dynamic>? data,
     208             :       List<String>? slugs,
     209             :       String? href,
     210             :       String? uid});
     211             : }
     212             : 
     213             : /// @nodoc
     214             : class __$DocumentCopyWithImpl<$Res> extends _$DocumentCopyWithImpl<$Res>
     215             :     implements _$DocumentCopyWith<$Res> {
     216           0 :   __$DocumentCopyWithImpl(_Document _value, $Res Function(_Document) _then)
     217           0 :       : super(_value, (v) => _then(v as _Document));
     218             : 
     219           0 :   @override
     220           0 :   _Document get _value => super._value as _Document;
     221             : 
     222           0 :   @override
     223             :   $Res call({
     224             :     Object? alternateLanguages = freezed,
     225             :     Object? firstPublicationDate = freezed,
     226             :     Object? lastPublicationDate = freezed,
     227             :     Object? linkedDocuments = freezed,
     228             :     Object? tags = freezed,
     229             :     Object? id = freezed,
     230             :     Object? lang = freezed,
     231             :     Object? type = freezed,
     232             :     Object? data = freezed,
     233             :     Object? slugs = freezed,
     234             :     Object? href = freezed,
     235             :     Object? uid = freezed,
     236             :   }) {
     237           0 :     return _then(_Document(
     238           0 :       alternateLanguages: alternateLanguages == freezed
     239           0 :           ? _value.alternateLanguages
     240             :           : alternateLanguages // ignore: cast_nullable_to_non_nullable
     241             :               as List<AlternateLanguage>?,
     242           0 :       firstPublicationDate: firstPublicationDate == freezed
     243           0 :           ? _value.firstPublicationDate
     244             :           : firstPublicationDate // ignore: cast_nullable_to_non_nullable
     245             :               as String?,
     246           0 :       lastPublicationDate: lastPublicationDate == freezed
     247           0 :           ? _value.lastPublicationDate
     248             :           : lastPublicationDate // ignore: cast_nullable_to_non_nullable
     249             :               as String?,
     250           0 :       linkedDocuments: linkedDocuments == freezed
     251           0 :           ? _value.linkedDocuments
     252             :           : linkedDocuments // ignore: cast_nullable_to_non_nullable
     253             :               as List<String>?,
     254           0 :       tags: tags == freezed
     255           0 :           ? _value.tags
     256             :           : tags // ignore: cast_nullable_to_non_nullable
     257             :               as List<String>,
     258           0 :       id: id == freezed
     259           0 :           ? _value.id
     260             :           : id // ignore: cast_nullable_to_non_nullable
     261             :               as String,
     262           0 :       lang: lang == freezed
     263           0 :           ? _value.lang
     264             :           : lang // ignore: cast_nullable_to_non_nullable
     265             :               as String,
     266           0 :       type: type == freezed
     267           0 :           ? _value.type
     268             :           : type // ignore: cast_nullable_to_non_nullable
     269             :               as String,
     270           0 :       data: data == freezed
     271           0 :           ? _value.data
     272             :           : data // ignore: cast_nullable_to_non_nullable
     273             :               as Map<String, dynamic>?,
     274           0 :       slugs: slugs == freezed
     275           0 :           ? _value.slugs
     276             :           : slugs // ignore: cast_nullable_to_non_nullable
     277             :               as List<String>?,
     278           0 :       href: href == freezed
     279           0 :           ? _value.href
     280             :           : href // ignore: cast_nullable_to_non_nullable
     281             :               as String?,
     282           0 :       uid: uid == freezed
     283           0 :           ? _value.uid
     284             :           : uid // ignore: cast_nullable_to_non_nullable
     285             :               as String?,
     286             :     ));
     287             :   }
     288             : }
     289             : 
     290             : /// @nodoc
     291             : @JsonSerializable()
     292             : class _$_Document implements _Document {
     293           6 :   _$_Document(
     294             :       {@JsonKey(name: 'alternate_languages') this.alternateLanguages,
     295             :       @JsonKey(name: 'first_publication_date') this.firstPublicationDate,
     296             :       @JsonKey(name: 'last_publication_date') this.lastPublicationDate,
     297             :       @JsonKey(name: 'linked_documents') this.linkedDocuments,
     298             :       required this.tags,
     299             :       required this.id,
     300             :       required this.lang,
     301             :       required this.type,
     302             :       this.data,
     303             :       this.slugs,
     304             :       this.href,
     305             :       this.uid});
     306             : 
     307           6 :   factory _$_Document.fromJson(Map<String, dynamic> json) =>
     308           6 :       _$_$_DocumentFromJson(json);
     309             : 
     310             :   @override
     311             :   @JsonKey(name: 'alternate_languages')
     312             :   final List<AlternateLanguage>? alternateLanguages;
     313             :   @override
     314             :   @JsonKey(name: 'first_publication_date')
     315             :   final String? firstPublicationDate;
     316             :   @override
     317             :   @JsonKey(name: 'last_publication_date')
     318             :   final String? lastPublicationDate;
     319             :   @override
     320             :   @JsonKey(name: 'linked_documents')
     321             :   final List<String>? linkedDocuments;
     322             :   @override
     323             :   final List<String> tags;
     324             :   @override
     325             :   final String id;
     326             :   @override
     327             :   final String lang;
     328             :   @override
     329             :   final String type;
     330             :   @override
     331             :   final Map<String, dynamic>? data;
     332             :   @override
     333             :   final List<String>? slugs;
     334             :   @override
     335             :   final String? href;
     336             :   @override
     337             :   final String? uid;
     338             : 
     339           0 :   @override
     340             :   String toString() {
     341           0 :     return 'Document(alternateLanguages: $alternateLanguages, firstPublicationDate: $firstPublicationDate, lastPublicationDate: $lastPublicationDate, linkedDocuments: $linkedDocuments, tags: $tags, id: $id, lang: $lang, type: $type, data: $data, slugs: $slugs, href: $href, uid: $uid)';
     342             :   }
     343             : 
     344           0 :   @override
     345             :   bool operator ==(dynamic other) {
     346             :     return identical(this, other) ||
     347           0 :         (other is _Document &&
     348           0 :             (identical(other.alternateLanguages, alternateLanguages) ||
     349             :                 const DeepCollectionEquality()
     350           0 :                     .equals(other.alternateLanguages, alternateLanguages)) &&
     351           0 :             (identical(other.firstPublicationDate, firstPublicationDate) ||
     352           0 :                 const DeepCollectionEquality().equals(
     353           0 :                     other.firstPublicationDate, firstPublicationDate)) &&
     354           0 :             (identical(other.lastPublicationDate, lastPublicationDate) ||
     355             :                 const DeepCollectionEquality()
     356           0 :                     .equals(other.lastPublicationDate, lastPublicationDate)) &&
     357           0 :             (identical(other.linkedDocuments, linkedDocuments) ||
     358             :                 const DeepCollectionEquality()
     359           0 :                     .equals(other.linkedDocuments, linkedDocuments)) &&
     360           0 :             (identical(other.tags, tags) ||
     361           0 :                 const DeepCollectionEquality().equals(other.tags, tags)) &&
     362           0 :             (identical(other.id, id) ||
     363           0 :                 const DeepCollectionEquality().equals(other.id, id)) &&
     364           0 :             (identical(other.lang, lang) ||
     365           0 :                 const DeepCollectionEquality().equals(other.lang, lang)) &&
     366           0 :             (identical(other.type, type) ||
     367           0 :                 const DeepCollectionEquality().equals(other.type, type)) &&
     368           0 :             (identical(other.data, data) ||
     369           0 :                 const DeepCollectionEquality().equals(other.data, data)) &&
     370           0 :             (identical(other.slugs, slugs) ||
     371           0 :                 const DeepCollectionEquality().equals(other.slugs, slugs)) &&
     372           0 :             (identical(other.href, href) ||
     373           0 :                 const DeepCollectionEquality().equals(other.href, href)) &&
     374           0 :             (identical(other.uid, uid) ||
     375           0 :                 const DeepCollectionEquality().equals(other.uid, uid)));
     376             :   }
     377             : 
     378           0 :   @override
     379             :   int get hashCode =>
     380           0 :       runtimeType.hashCode ^
     381           0 :       const DeepCollectionEquality().hash(alternateLanguages) ^
     382           0 :       const DeepCollectionEquality().hash(firstPublicationDate) ^
     383           0 :       const DeepCollectionEquality().hash(lastPublicationDate) ^
     384           0 :       const DeepCollectionEquality().hash(linkedDocuments) ^
     385           0 :       const DeepCollectionEquality().hash(tags) ^
     386           0 :       const DeepCollectionEquality().hash(id) ^
     387           0 :       const DeepCollectionEquality().hash(lang) ^
     388           0 :       const DeepCollectionEquality().hash(type) ^
     389           0 :       const DeepCollectionEquality().hash(data) ^
     390           0 :       const DeepCollectionEquality().hash(slugs) ^
     391           0 :       const DeepCollectionEquality().hash(href) ^
     392           0 :       const DeepCollectionEquality().hash(uid);
     393             : 
     394           0 :   @JsonKey(ignore: true)
     395             :   @override
     396             :   _$DocumentCopyWith<_Document> get copyWith =>
     397           0 :       __$DocumentCopyWithImpl<_Document>(this, _$identity);
     398             : 
     399           0 :   @override
     400             :   Map<String, dynamic> toJson() {
     401           0 :     return _$_$_DocumentToJson(this);
     402             :   }
     403             : }
     404             : 
     405             : abstract class _Document implements Document {
     406             :   factory _Document(
     407             :       {@JsonKey(name: 'alternate_languages')
     408             :           List<AlternateLanguage>? alternateLanguages,
     409             :       @JsonKey(name: 'first_publication_date')
     410             :           String? firstPublicationDate,
     411             :       @JsonKey(name: 'last_publication_date')
     412             :           String? lastPublicationDate,
     413             :       @JsonKey(name: 'linked_documents')
     414             :           List<String>? linkedDocuments,
     415             :       required List<String> tags,
     416             :       required String id,
     417             :       required String lang,
     418             :       required String type,
     419             :       Map<String, dynamic>? data,
     420             :       List<String>? slugs,
     421             :       String? href,
     422             :       String? uid}) = _$_Document;
     423             : 
     424             :   factory _Document.fromJson(Map<String, dynamic> json) = _$_Document.fromJson;
     425             : 
     426           0 :   @override
     427             :   @JsonKey(name: 'alternate_languages')
     428             :   List<AlternateLanguage>? get alternateLanguages =>
     429           0 :       throw _privateConstructorUsedError;
     430           0 :   @override
     431             :   @JsonKey(name: 'first_publication_date')
     432           0 :   String? get firstPublicationDate => throw _privateConstructorUsedError;
     433           0 :   @override
     434             :   @JsonKey(name: 'last_publication_date')
     435           0 :   String? get lastPublicationDate => throw _privateConstructorUsedError;
     436           0 :   @override
     437             :   @JsonKey(name: 'linked_documents')
     438           0 :   List<String>? get linkedDocuments => throw _privateConstructorUsedError;
     439           0 :   @override
     440           0 :   List<String> get tags => throw _privateConstructorUsedError;
     441           0 :   @override
     442           0 :   String get id => throw _privateConstructorUsedError;
     443           0 :   @override
     444           0 :   String get lang => throw _privateConstructorUsedError;
     445           0 :   @override
     446           0 :   String get type => throw _privateConstructorUsedError;
     447           0 :   @override
     448           0 :   Map<String, dynamic>? get data => throw _privateConstructorUsedError;
     449           0 :   @override
     450           0 :   List<String>? get slugs => throw _privateConstructorUsedError;
     451           0 :   @override
     452           0 :   String? get href => throw _privateConstructorUsedError;
     453           0 :   @override
     454           0 :   String? get uid => throw _privateConstructorUsedError;
     455           0 :   @override
     456             :   @JsonKey(ignore: true)
     457             :   _$DocumentCopyWith<_Document> get copyWith =>
     458           0 :       throw _privateConstructorUsedError;
     459             : }

Generated by: LCOV version 1.15