LCOV - code coverage report
Current view: top level - types/simple/simple_image - simple_image.freezed.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 79 7.6 %
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 'simple_image.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           1 : SimpleImage _$SimpleImageFromJson(Map<String, dynamic> json) {
      16           1 :   return _SimpleImage.fromJson(json);
      17             : }
      18             : 
      19             : /// @nodoc
      20             : class _$SimpleImageTearOff {
      21           7 :   const _$SimpleImageTearOff();
      22             : 
      23           0 :   _SimpleImage call(
      24             :       {String? alt,
      25             :       String? copyright,
      26             :       required Dimension dimensions,
      27             :       required String url}) {
      28           0 :     return _SimpleImage(
      29             :       alt: alt,
      30             :       copyright: copyright,
      31             :       dimensions: dimensions,
      32             :       url: url,
      33             :     );
      34             :   }
      35             : 
      36           0 :   SimpleImage fromJson(Map<String, Object> json) {
      37           0 :     return SimpleImage.fromJson(json);
      38             :   }
      39             : }
      40             : 
      41             : /// @nodoc
      42             : const $SimpleImage = _$SimpleImageTearOff();
      43             : 
      44             : /// @nodoc
      45             : mixin _$SimpleImage {
      46           0 :   String? get alt => throw _privateConstructorUsedError;
      47           0 :   String? get copyright => throw _privateConstructorUsedError;
      48           0 :   Dimension get dimensions => throw _privateConstructorUsedError;
      49           0 :   String get url => throw _privateConstructorUsedError;
      50             : 
      51           0 :   Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
      52           0 :   @JsonKey(ignore: true)
      53             :   $SimpleImageCopyWith<SimpleImage> get copyWith =>
      54           0 :       throw _privateConstructorUsedError;
      55             : }
      56             : 
      57             : /// @nodoc
      58             : abstract class $SimpleImageCopyWith<$Res> {
      59             :   factory $SimpleImageCopyWith(
      60             :           SimpleImage value, $Res Function(SimpleImage) then) =
      61             :       _$SimpleImageCopyWithImpl<$Res>;
      62             :   $Res call({String? alt, String? copyright, Dimension dimensions, String url});
      63             : 
      64             :   $DimensionCopyWith<$Res> get dimensions;
      65             : }
      66             : 
      67             : /// @nodoc
      68             : class _$SimpleImageCopyWithImpl<$Res> implements $SimpleImageCopyWith<$Res> {
      69           0 :   _$SimpleImageCopyWithImpl(this._value, this._then);
      70             : 
      71             :   final SimpleImage _value;
      72             :   // ignore: unused_field
      73             :   final $Res Function(SimpleImage) _then;
      74             : 
      75           0 :   @override
      76             :   $Res call({
      77             :     Object? alt = freezed,
      78             :     Object? copyright = freezed,
      79             :     Object? dimensions = freezed,
      80             :     Object? url = freezed,
      81             :   }) {
      82           0 :     return _then(_value.copyWith(
      83           0 :       alt: alt == freezed
      84           0 :           ? _value.alt
      85             :           : alt // ignore: cast_nullable_to_non_nullable
      86             :               as String?,
      87           0 :       copyright: copyright == freezed
      88           0 :           ? _value.copyright
      89             :           : copyright // ignore: cast_nullable_to_non_nullable
      90             :               as String?,
      91           0 :       dimensions: dimensions == freezed
      92           0 :           ? _value.dimensions
      93             :           : dimensions // ignore: cast_nullable_to_non_nullable
      94             :               as Dimension,
      95           0 :       url: url == freezed
      96           0 :           ? _value.url
      97             :           : url // ignore: cast_nullable_to_non_nullable
      98             :               as String,
      99             :     ));
     100             :   }
     101             : 
     102           0 :   @override
     103             :   $DimensionCopyWith<$Res> get dimensions {
     104           0 :     return $DimensionCopyWith<$Res>(_value.dimensions, (value) {
     105           0 :       return _then(_value.copyWith(dimensions: value));
     106             :     });
     107             :   }
     108             : }
     109             : 
     110             : /// @nodoc
     111             : abstract class _$SimpleImageCopyWith<$Res>
     112             :     implements $SimpleImageCopyWith<$Res> {
     113             :   factory _$SimpleImageCopyWith(
     114             :           _SimpleImage value, $Res Function(_SimpleImage) then) =
     115             :       __$SimpleImageCopyWithImpl<$Res>;
     116             :   @override
     117             :   $Res call({String? alt, String? copyright, Dimension dimensions, String url});
     118             : 
     119             :   @override
     120             :   $DimensionCopyWith<$Res> get dimensions;
     121             : }
     122             : 
     123             : /// @nodoc
     124             : class __$SimpleImageCopyWithImpl<$Res> extends _$SimpleImageCopyWithImpl<$Res>
     125             :     implements _$SimpleImageCopyWith<$Res> {
     126           0 :   __$SimpleImageCopyWithImpl(
     127             :       _SimpleImage _value, $Res Function(_SimpleImage) _then)
     128           0 :       : super(_value, (v) => _then(v as _SimpleImage));
     129             : 
     130           0 :   @override
     131           0 :   _SimpleImage get _value => super._value as _SimpleImage;
     132             : 
     133           0 :   @override
     134             :   $Res call({
     135             :     Object? alt = freezed,
     136             :     Object? copyright = freezed,
     137             :     Object? dimensions = freezed,
     138             :     Object? url = freezed,
     139             :   }) {
     140           0 :     return _then(_SimpleImage(
     141           0 :       alt: alt == freezed
     142           0 :           ? _value.alt
     143             :           : alt // ignore: cast_nullable_to_non_nullable
     144             :               as String?,
     145           0 :       copyright: copyright == freezed
     146           0 :           ? _value.copyright
     147             :           : copyright // ignore: cast_nullable_to_non_nullable
     148             :               as String?,
     149           0 :       dimensions: dimensions == freezed
     150           0 :           ? _value.dimensions
     151             :           : dimensions // ignore: cast_nullable_to_non_nullable
     152             :               as Dimension,
     153           0 :       url: url == freezed
     154           0 :           ? _value.url
     155             :           : url // ignore: cast_nullable_to_non_nullable
     156             :               as String,
     157             :     ));
     158             :   }
     159             : }
     160             : 
     161             : /// @nodoc
     162             : @JsonSerializable()
     163             : class _$_SimpleImage implements _SimpleImage {
     164           1 :   _$_SimpleImage(
     165             :       {this.alt, this.copyright, required this.dimensions, required this.url});
     166             : 
     167           1 :   factory _$_SimpleImage.fromJson(Map<String, dynamic> json) =>
     168           1 :       _$_$_SimpleImageFromJson(json);
     169             : 
     170             :   @override
     171             :   final String? alt;
     172             :   @override
     173             :   final String? copyright;
     174             :   @override
     175             :   final Dimension dimensions;
     176             :   @override
     177             :   final String url;
     178             : 
     179           0 :   @override
     180             :   String toString() {
     181           0 :     return 'SimpleImage(alt: $alt, copyright: $copyright, dimensions: $dimensions, url: $url)';
     182             :   }
     183             : 
     184           0 :   @override
     185             :   bool operator ==(dynamic other) {
     186             :     return identical(this, other) ||
     187           0 :         (other is _SimpleImage &&
     188           0 :             (identical(other.alt, alt) ||
     189           0 :                 const DeepCollectionEquality().equals(other.alt, alt)) &&
     190           0 :             (identical(other.copyright, copyright) ||
     191             :                 const DeepCollectionEquality()
     192           0 :                     .equals(other.copyright, copyright)) &&
     193           0 :             (identical(other.dimensions, dimensions) ||
     194             :                 const DeepCollectionEquality()
     195           0 :                     .equals(other.dimensions, dimensions)) &&
     196           0 :             (identical(other.url, url) ||
     197           0 :                 const DeepCollectionEquality().equals(other.url, url)));
     198             :   }
     199             : 
     200           0 :   @override
     201             :   int get hashCode =>
     202           0 :       runtimeType.hashCode ^
     203           0 :       const DeepCollectionEquality().hash(alt) ^
     204           0 :       const DeepCollectionEquality().hash(copyright) ^
     205           0 :       const DeepCollectionEquality().hash(dimensions) ^
     206           0 :       const DeepCollectionEquality().hash(url);
     207             : 
     208           0 :   @JsonKey(ignore: true)
     209             :   @override
     210             :   _$SimpleImageCopyWith<_SimpleImage> get copyWith =>
     211           0 :       __$SimpleImageCopyWithImpl<_SimpleImage>(this, _$identity);
     212             : 
     213           0 :   @override
     214             :   Map<String, dynamic> toJson() {
     215           0 :     return _$_$_SimpleImageToJson(this);
     216             :   }
     217             : }
     218             : 
     219             : abstract class _SimpleImage implements SimpleImage {
     220             :   factory _SimpleImage(
     221             :       {String? alt,
     222             :       String? copyright,
     223             :       required Dimension dimensions,
     224             :       required String url}) = _$_SimpleImage;
     225             : 
     226             :   factory _SimpleImage.fromJson(Map<String, dynamic> json) =
     227             :       _$_SimpleImage.fromJson;
     228             : 
     229           0 :   @override
     230           0 :   String? get alt => throw _privateConstructorUsedError;
     231           0 :   @override
     232           0 :   String? get copyright => throw _privateConstructorUsedError;
     233           0 :   @override
     234           0 :   Dimension get dimensions => throw _privateConstructorUsedError;
     235           0 :   @override
     236           0 :   String get url => throw _privateConstructorUsedError;
     237           0 :   @override
     238             :   @JsonKey(ignore: true)
     239             :   _$SimpleImageCopyWith<_SimpleImage> get copyWith =>
     240           0 :       throw _privateConstructorUsedError;
     241             : }

Generated by: LCOV version 1.15