LCOV - code coverage report
Current view: top level - api - api.freezed.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 5 107 4.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 'api.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           7 : Api _$ApiFromJson(Map<String, dynamic> json) {
      16           7 :   return _Api.fromJson(json);
      17             : }
      18             : 
      19             : /// @nodoc
      20             : class _$ApiTearOff {
      21           7 :   const _$ApiTearOff();
      22             : 
      23           0 :   _Api call(
      24             :       {@JsonKey(name: 'oauth_initiate') required String? oauthInitiate,
      25             :       @JsonKey(name: 'oauth_token') required String? oauthToken,
      26             :       required List<Language> languages,
      27             :       required List<Ref> refs,
      28             :       required String license,
      29             :       required String version,
      30             :       Map<String, String>? types}) {
      31           0 :     return _Api(
      32             :       oauthInitiate: oauthInitiate,
      33             :       oauthToken: oauthToken,
      34             :       languages: languages,
      35             :       refs: refs,
      36             :       license: license,
      37             :       version: version,
      38             :       types: types,
      39             :     );
      40             :   }
      41             : 
      42           0 :   Api fromJson(Map<String, Object> json) {
      43           0 :     return Api.fromJson(json);
      44             :   }
      45             : }
      46             : 
      47             : /// @nodoc
      48             : const $Api = _$ApiTearOff();
      49             : 
      50             : /// @nodoc
      51             : mixin _$Api {
      52           0 :   @JsonKey(name: 'oauth_initiate')
      53           0 :   String? get oauthInitiate => throw _privateConstructorUsedError;
      54           0 :   @JsonKey(name: 'oauth_token')
      55           0 :   String? get oauthToken => throw _privateConstructorUsedError;
      56           0 :   List<Language> get languages => throw _privateConstructorUsedError;
      57           0 :   List<Ref> get refs => throw _privateConstructorUsedError;
      58           0 :   String get license => throw _privateConstructorUsedError;
      59           0 :   String get version => throw _privateConstructorUsedError;
      60           0 :   Map<String, String>? get types => throw _privateConstructorUsedError;
      61             : 
      62           0 :   Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
      63           0 :   @JsonKey(ignore: true)
      64           0 :   $ApiCopyWith<Api> get copyWith => throw _privateConstructorUsedError;
      65             : }
      66             : 
      67             : /// @nodoc
      68             : abstract class $ApiCopyWith<$Res> {
      69             :   factory $ApiCopyWith(Api value, $Res Function(Api) then) =
      70             :       _$ApiCopyWithImpl<$Res>;
      71             :   $Res call(
      72             :       {@JsonKey(name: 'oauth_initiate') String? oauthInitiate,
      73             :       @JsonKey(name: 'oauth_token') String? oauthToken,
      74             :       List<Language> languages,
      75             :       List<Ref> refs,
      76             :       String license,
      77             :       String version,
      78             :       Map<String, String>? types});
      79             : }
      80             : 
      81             : /// @nodoc
      82             : class _$ApiCopyWithImpl<$Res> implements $ApiCopyWith<$Res> {
      83           0 :   _$ApiCopyWithImpl(this._value, this._then);
      84             : 
      85             :   final Api _value;
      86             :   // ignore: unused_field
      87             :   final $Res Function(Api) _then;
      88             : 
      89           0 :   @override
      90             :   $Res call({
      91             :     Object? oauthInitiate = freezed,
      92             :     Object? oauthToken = freezed,
      93             :     Object? languages = freezed,
      94             :     Object? refs = freezed,
      95             :     Object? license = freezed,
      96             :     Object? version = freezed,
      97             :     Object? types = freezed,
      98             :   }) {
      99           0 :     return _then(_value.copyWith(
     100           0 :       oauthInitiate: oauthInitiate == freezed
     101           0 :           ? _value.oauthInitiate
     102             :           : oauthInitiate // ignore: cast_nullable_to_non_nullable
     103             :               as String?,
     104           0 :       oauthToken: oauthToken == freezed
     105           0 :           ? _value.oauthToken
     106             :           : oauthToken // ignore: cast_nullable_to_non_nullable
     107             :               as String?,
     108           0 :       languages: languages == freezed
     109           0 :           ? _value.languages
     110             :           : languages // ignore: cast_nullable_to_non_nullable
     111             :               as List<Language>,
     112           0 :       refs: refs == freezed
     113           0 :           ? _value.refs
     114             :           : refs // ignore: cast_nullable_to_non_nullable
     115             :               as List<Ref>,
     116           0 :       license: license == freezed
     117           0 :           ? _value.license
     118             :           : license // ignore: cast_nullable_to_non_nullable
     119             :               as String,
     120           0 :       version: version == freezed
     121           0 :           ? _value.version
     122             :           : version // ignore: cast_nullable_to_non_nullable
     123             :               as String,
     124           0 :       types: types == freezed
     125           0 :           ? _value.types
     126             :           : types // ignore: cast_nullable_to_non_nullable
     127             :               as Map<String, String>?,
     128             :     ));
     129             :   }
     130             : }
     131             : 
     132             : /// @nodoc
     133             : abstract class _$ApiCopyWith<$Res> implements $ApiCopyWith<$Res> {
     134             :   factory _$ApiCopyWith(_Api value, $Res Function(_Api) then) =
     135             :       __$ApiCopyWithImpl<$Res>;
     136             :   @override
     137             :   $Res call(
     138             :       {@JsonKey(name: 'oauth_initiate') String? oauthInitiate,
     139             :       @JsonKey(name: 'oauth_token') String? oauthToken,
     140             :       List<Language> languages,
     141             :       List<Ref> refs,
     142             :       String license,
     143             :       String version,
     144             :       Map<String, String>? types});
     145             : }
     146             : 
     147             : /// @nodoc
     148             : class __$ApiCopyWithImpl<$Res> extends _$ApiCopyWithImpl<$Res>
     149             :     implements _$ApiCopyWith<$Res> {
     150           0 :   __$ApiCopyWithImpl(_Api _value, $Res Function(_Api) _then)
     151           0 :       : super(_value, (v) => _then(v as _Api));
     152             : 
     153           0 :   @override
     154           0 :   _Api get _value => super._value as _Api;
     155             : 
     156           0 :   @override
     157             :   $Res call({
     158             :     Object? oauthInitiate = freezed,
     159             :     Object? oauthToken = freezed,
     160             :     Object? languages = freezed,
     161             :     Object? refs = freezed,
     162             :     Object? license = freezed,
     163             :     Object? version = freezed,
     164             :     Object? types = freezed,
     165             :   }) {
     166           0 :     return _then(_Api(
     167           0 :       oauthInitiate: oauthInitiate == freezed
     168           0 :           ? _value.oauthInitiate
     169             :           : oauthInitiate // ignore: cast_nullable_to_non_nullable
     170             :               as String?,
     171           0 :       oauthToken: oauthToken == freezed
     172           0 :           ? _value.oauthToken
     173             :           : oauthToken // ignore: cast_nullable_to_non_nullable
     174             :               as String?,
     175           0 :       languages: languages == freezed
     176           0 :           ? _value.languages
     177             :           : languages // ignore: cast_nullable_to_non_nullable
     178             :               as List<Language>,
     179           0 :       refs: refs == freezed
     180           0 :           ? _value.refs
     181             :           : refs // ignore: cast_nullable_to_non_nullable
     182             :               as List<Ref>,
     183           0 :       license: license == freezed
     184           0 :           ? _value.license
     185             :           : license // ignore: cast_nullable_to_non_nullable
     186             :               as String,
     187           0 :       version: version == freezed
     188           0 :           ? _value.version
     189             :           : version // ignore: cast_nullable_to_non_nullable
     190             :               as String,
     191           0 :       types: types == freezed
     192           0 :           ? _value.types
     193             :           : types // ignore: cast_nullable_to_non_nullable
     194             :               as Map<String, String>?,
     195             :     ));
     196             :   }
     197             : }
     198             : 
     199             : /// @nodoc
     200             : @JsonSerializable()
     201             : class _$_Api implements _Api {
     202           7 :   _$_Api(
     203             :       {@JsonKey(name: 'oauth_initiate') required this.oauthInitiate,
     204             :       @JsonKey(name: 'oauth_token') required this.oauthToken,
     205             :       required this.languages,
     206             :       required this.refs,
     207             :       required this.license,
     208             :       required this.version,
     209             :       this.types});
     210             : 
     211          14 :   factory _$_Api.fromJson(Map<String, dynamic> json) => _$_$_ApiFromJson(json);
     212             : 
     213             :   @override
     214             :   @JsonKey(name: 'oauth_initiate')
     215             :   final String? oauthInitiate;
     216             :   @override
     217             :   @JsonKey(name: 'oauth_token')
     218             :   final String? oauthToken;
     219             :   @override
     220             :   final List<Language> languages;
     221             :   @override
     222             :   final List<Ref> refs;
     223             :   @override
     224             :   final String license;
     225             :   @override
     226             :   final String version;
     227             :   @override
     228             :   final Map<String, String>? types;
     229             : 
     230           0 :   @override
     231             :   String toString() {
     232           0 :     return 'Api(oauthInitiate: $oauthInitiate, oauthToken: $oauthToken, languages: $languages, refs: $refs, license: $license, version: $version, types: $types)';
     233             :   }
     234             : 
     235           0 :   @override
     236             :   bool operator ==(dynamic other) {
     237             :     return identical(this, other) ||
     238           0 :         (other is _Api &&
     239           0 :             (identical(other.oauthInitiate, oauthInitiate) ||
     240             :                 const DeepCollectionEquality()
     241           0 :                     .equals(other.oauthInitiate, oauthInitiate)) &&
     242           0 :             (identical(other.oauthToken, oauthToken) ||
     243             :                 const DeepCollectionEquality()
     244           0 :                     .equals(other.oauthToken, oauthToken)) &&
     245           0 :             (identical(other.languages, languages) ||
     246             :                 const DeepCollectionEquality()
     247           0 :                     .equals(other.languages, languages)) &&
     248           0 :             (identical(other.refs, refs) ||
     249           0 :                 const DeepCollectionEquality().equals(other.refs, refs)) &&
     250           0 :             (identical(other.license, license) ||
     251             :                 const DeepCollectionEquality()
     252           0 :                     .equals(other.license, license)) &&
     253           0 :             (identical(other.version, version) ||
     254             :                 const DeepCollectionEquality()
     255           0 :                     .equals(other.version, version)) &&
     256           0 :             (identical(other.types, types) ||
     257           0 :                 const DeepCollectionEquality().equals(other.types, types)));
     258             :   }
     259             : 
     260           0 :   @override
     261             :   int get hashCode =>
     262           0 :       runtimeType.hashCode ^
     263           0 :       const DeepCollectionEquality().hash(oauthInitiate) ^
     264           0 :       const DeepCollectionEquality().hash(oauthToken) ^
     265           0 :       const DeepCollectionEquality().hash(languages) ^
     266           0 :       const DeepCollectionEquality().hash(refs) ^
     267           0 :       const DeepCollectionEquality().hash(license) ^
     268           0 :       const DeepCollectionEquality().hash(version) ^
     269           0 :       const DeepCollectionEquality().hash(types);
     270             : 
     271           0 :   @JsonKey(ignore: true)
     272             :   @override
     273             :   _$ApiCopyWith<_Api> get copyWith =>
     274           0 :       __$ApiCopyWithImpl<_Api>(this, _$identity);
     275             : 
     276           0 :   @override
     277             :   Map<String, dynamic> toJson() {
     278           0 :     return _$_$_ApiToJson(this);
     279             :   }
     280             : }
     281             : 
     282             : abstract class _Api implements Api {
     283             :   factory _Api(
     284             :       {@JsonKey(name: 'oauth_initiate') required String? oauthInitiate,
     285             :       @JsonKey(name: 'oauth_token') required String? oauthToken,
     286             :       required List<Language> languages,
     287             :       required List<Ref> refs,
     288             :       required String license,
     289             :       required String version,
     290             :       Map<String, String>? types}) = _$_Api;
     291             : 
     292             :   factory _Api.fromJson(Map<String, dynamic> json) = _$_Api.fromJson;
     293             : 
     294           0 :   @override
     295             :   @JsonKey(name: 'oauth_initiate')
     296           0 :   String? get oauthInitiate => throw _privateConstructorUsedError;
     297           0 :   @override
     298             :   @JsonKey(name: 'oauth_token')
     299           0 :   String? get oauthToken => throw _privateConstructorUsedError;
     300           0 :   @override
     301           0 :   List<Language> get languages => throw _privateConstructorUsedError;
     302           0 :   @override
     303           0 :   List<Ref> get refs => throw _privateConstructorUsedError;
     304           0 :   @override
     305           0 :   String get license => throw _privateConstructorUsedError;
     306           0 :   @override
     307           0 :   String get version => throw _privateConstructorUsedError;
     308           0 :   @override
     309           0 :   Map<String, String>? get types => throw _privateConstructorUsedError;
     310           0 :   @override
     311             :   @JsonKey(ignore: true)
     312           0 :   _$ApiCopyWith<_Api> get copyWith => throw _privateConstructorUsedError;
     313             : }

Generated by: LCOV version 1.15