// GENERATED CODE - DO NOT MODIFY BY HAND

// ignore_for_file: lines_longer_than_80_chars, text_direction_code_point_in_literal, inference_failure_on_function_invocation, inference_failure_on_collection_literal

part of 'implicit_default_value.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

DefaultValueImplicit _$DefaultValueImplicitFromJson(
        Map<String, dynamic> json) =>
    DefaultValueImplicit(
      fieldBool: json['fieldBool'] as bool? ?? true,
      fieldString: json['fieldString'] as String? ?? 'string',
      fieldInt: (json['fieldInt'] as num?)?.toInt() ?? 42,
      fieldDouble: (json['fieldDouble'] as num?)?.toDouble() ?? 3.14,
      fieldListEmpty: json['fieldListEmpty'] as List<dynamic>? ?? const [],
      fieldSetEmpty:
          (json['fieldSetEmpty'] as List<dynamic>?)?.toSet() ?? const {},
      fieldMapEmpty: json['fieldMapEmpty'] as Map<String, dynamic>? ?? const {},
      fieldListSimple: (json['fieldListSimple'] as List<dynamic>?)
              ?.map((e) => (e as num).toInt())
              .toList() ??
          const [1, 2, 3],
      fieldSetSimple: (json['fieldSetSimple'] as List<dynamic>?)
              ?.map((e) => e as String)
              .toSet() ??
          const {'entry1', 'entry2'},
      fieldMapSimple: (json['fieldMapSimple'] as Map<String, dynamic>?)?.map(
            (k, e) => MapEntry(k, (e as num).toInt()),
          ) ??
          const {'answer': 42},
      fieldMapListString:
          (json['fieldMapListString'] as Map<String, dynamic>?)?.map(
                (k, e) => MapEntry(
                    k, (e as List<dynamic>).map((e) => e as String).toList()),
              ) ??
              const {
                'root': ['child']
              },
      fieldEnum:
          $enumDecodeNullable(_$GreekEnumMap, json['fieldEnum']) ?? Greek.beta,
      durationField: json['durationField'] == null
          ? const Duration()
          : Duration(microseconds: (json['durationField'] as num).toInt()),
      constClass: json['constClass'] == null
          ? const ConstClass('value')
          : ConstClass.fromJson(json['constClass'] as Map<String, dynamic>),
      valueFromConverter: json['valueFromConverter'] == null
          ? const ConstClass('value')
          : const ConstClassConverter()
              .fromJson(json['valueFromConverter'] as String),
      valueFromFunction: json['valueFromFunction'] == null
          ? const ConstClass('value')
          : constClassFromJson(json['valueFromFunction'] as String),
      intDefaultValueFromFunction:
          (json['intDefaultValueFromFunction'] as num?)?.toInt() ?? 43,
      valueFromDefaultValueDefaultConstructor:
          json['valueFromDefaultValueDefaultConstructor'] == null
              ? const ConstClass()
              : ConstClass.fromJson(
                  json['valueFromDefaultValueDefaultConstructor']
                      as Map<String, dynamic>),
      valueFromDefaultValueNamedConstructor:
          json['valueFromDefaultValueNamedConstructor'] == null
              ? const ConstClass('easy')
              : ConstClass.fromJson(
                  json['valueFromDefaultValueNamedConstructor']
                      as Map<String, dynamic>),
    );

Map<String, dynamic> _$DefaultValueImplicitToJson(
        DefaultValueImplicit instance) =>
    <String, dynamic>{
      'fieldBool': instance.fieldBool,
      'fieldString': instance.fieldString,
      'fieldInt': instance.fieldInt,
      'fieldDouble': instance.fieldDouble,
      'fieldListEmpty': instance.fieldListEmpty,
      'fieldSetEmpty': instance.fieldSetEmpty.toList(),
      'fieldMapEmpty': instance.fieldMapEmpty,
      'fieldListSimple': instance.fieldListSimple,
      'fieldSetSimple': instance.fieldSetSimple.toList(),
      'fieldMapSimple': instance.fieldMapSimple,
      'fieldMapListString': instance.fieldMapListString,
      'durationField': instance.durationField.inMicroseconds,
      'fieldEnum': _$GreekEnumMap[instance.fieldEnum]!,
      'constClass': instance.constClass,
      'valueFromConverter':
          const ConstClassConverter().toJson(instance.valueFromConverter),
      'valueFromFunction': constClassToJson(instance.valueFromFunction),
      'intDefaultValueFromFunction': instance.intDefaultValueFromFunction,
      'valueFromDefaultValueDefaultConstructor':
          instance.valueFromDefaultValueDefaultConstructor,
      'valueFromDefaultValueNamedConstructor':
          instance.valueFromDefaultValueNamedConstructor,
    };

const _$GreekEnumMap = {
  Greek.alpha: 'alpha',
  Greek.beta: 'beta',
  Greek.gamma: 'gamma',
  Greek.delta: 'delta',
};
