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

Generated by: LCOV version 1.15