// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'generator_options.dart';

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

GeneratorOptions _$GeneratorOptionsFromJson(Map json) => GeneratorOptions(
      withBaseUrl: json['with_base_url'] as bool? ?? true,
      withConverter: json['with_converter'] as bool? ?? true,
      ignoreHeaders: json['ignore_headers'] as bool? ?? false,
      separateModels: json['separate_models'] as bool? ?? false,
      useDefaultNullForLists: json['use_default_null_for_lists'] as bool? ?? false,
      buildOnlyModels: json['build_only_models'] as bool? ?? false,
      defaultValuesMap: (json['default_values_map'] as List<dynamic>?)
              ?.map((e) => DefaultValueMap.fromJson(Map<String, dynamic>.from(e as Map)))
              .toList() ??
          [],
      defaultHeaderValuesMap: (json['default_header_values_map'] as List<dynamic>?)
              ?.map((e) => DefaultHeaderValueMap.fromJson(Map<String, dynamic>.from(e as Map)))
              .toList() ??
          [],
      responseOverrideValueMap: (json['response_override_value_map'] as List<dynamic>?)
              ?.map((e) => ResponseOverrideValueMap.fromJson(Map<String, dynamic>.from(e as Map)))
              .toList() ??
          [],
      inputFolder: json['input_folder'] as String? ?? '',
      outputFolder: json['output_folder'] as String? ?? '',
      enumsCaseSensitive: json['enums_case_sensitive'] as bool? ?? false,
      useRequiredAttributeForHeaders: json['use_required_attribute_for_headers'] as bool? ?? true,
      useInheritance: json['use_inheritance'] as bool? ?? true,
      includeIfNull: json['include_if_null'] as bool?,
      modelPostfix: json['model_postfix'] as String? ?? '',
      includePaths: (json['include_paths'] as List<dynamic>?)?.map((e) => e as String).toList() ?? [],
      excludePaths: (json['exclude_paths'] as List<dynamic>?)?.map((e) => e as String).toList() ?? [],
      excludeParams: (json['exclude_params'] as List<dynamic>?)?.map((e) => e as String).toList() ?? [],
      defaultApiVersion: json['default_api_version'] as String? ?? '1.0',
      customApiVersion: (json['custom_api_version'] as List<dynamic>?)
              ?.map((e) => CustomApiVersion.fromJson(Map<String, dynamic>.from(e as Map)))
              .toList() ??
          [],
      urlParterns: (json['url_parterns'] as List<dynamic>?)?.map((e) => e as String).toList() ?? [],
      requestOverrideValueMap: (json['request_override_value_map'] as List<dynamic>?)
              ?.map((e) => RequestOverrideValueMap.fromJson(Map<String, dynamic>.from(e as Map)))
              .toList() ??
          [],
      customModelPath: (json['custom_model_path'] as List<dynamic>?)?.map((e) => e as String).toList() ?? [],
    );

Map<String, dynamic> _$GeneratorOptionsToJson(GeneratorOptions instance) => <String, dynamic>{
      'with_base_url': instance.withBaseUrl,
      'with_converter': instance.withConverter,
      'separate_models': instance.separateModels,
      'use_required_attribute_for_headers': instance.useRequiredAttributeForHeaders,
      'ignore_headers': instance.ignoreHeaders,
      'use_inheritance': instance.useInheritance,
      'enums_case_sensitive': instance.enumsCaseSensitive,
      'include_if_null': instance.includeIfNull,
      'input_folder': instance.inputFolder,
      'output_folder': instance.outputFolder,
      'use_default_null_for_lists': instance.useDefaultNullForLists,
      'build_only_models': instance.buildOnlyModels,
      'model_postfix': instance.modelPostfix,
      'default_values_map': instance.defaultValuesMap,
      'default_header_values_map': instance.defaultHeaderValuesMap,
      'response_override_value_map': instance.responseOverrideValueMap,
      'include_paths': instance.includePaths,
      'exclude_paths': instance.excludePaths,
      'exclude_params': instance.excludeParams,
      'default_api_version': instance.defaultApiVersion,
      'url_parterns': instance.urlParterns,
    };

DefaultValueMap _$DefaultValueMapFromJson(Map<String, dynamic> json) => DefaultValueMap(
      typeName: json['type_name'] as String? ?? '',
      defaultValue: json['default_value'] as String? ?? '',
    );

Map<String, dynamic> _$DefaultValueMapToJson(DefaultValueMap instance) => <String, dynamic>{
      'type_name': instance.typeName,
      'default_value': instance.defaultValue,
    };

ResponseOverrideValueMap _$ResponseOverrideValueMapFromJson(Map<String, dynamic> json) => ResponseOverrideValueMap(
      url: json['url'] as String? ?? '',
      method: json['method'] as String? ?? '',
      overriddenValue: json['overridden_value'] as String? ?? '',
    );

Map<String, dynamic> _$ResponseOverrideValueMapToJson(ResponseOverrideValueMap instance) => <String, dynamic>{
      'url': instance.url,
      'method': instance.method,
      'overridden_value': instance.overriddenValue,
    };

RequestOverrideValueMap _$RequestOverrideValueMapFromJson(Map<String, dynamic> json) => RequestOverrideValueMap(
      url: json['url'] as String? ?? '',
      method: json['method'] as String? ?? '',
      overriddenValue: json['overridden_value'] as String? ?? '',
      paramName: json['param_name'] as String? ?? '',
    );

Map<String, dynamic> _$RequestOverrideValueMapToJson(RequestOverrideValueMap instance) => <String, dynamic>{
      'url': instance.url,
      'method': instance.method,
      'overridden_value': instance.overriddenValue,
      'param_name': instance.paramName,
    };

DefaultHeaderValueMap _$DefaultHeaderValueMapFromJson(Map<String, dynamic> json) => DefaultHeaderValueMap(
      headerName: json['header_name'] as String? ?? '',
      defaultValue: json['default_value'] as String? ?? '',
    );

Map<String, dynamic> _$DefaultHeaderValueMapToJson(DefaultHeaderValueMap instance) => <String, dynamic>{
      'header_name': instance.headerName,
      'default_value': instance.defaultValue,
    };

CustomApiVersion _$CustomApiVersionFromJson(Map<String, dynamic> json) => CustomApiVersion(
      version: json['version'] as String? ?? '',
      urls: json['urls'] != null
          ? (json['urls'].toString().split(',').where((element) => element.isNotEmpty).toList())
          : <String>[],
    );

Map<String, dynamic> _$CustomApiVersionToJson(CustomApiVersion instance) => <String, dynamic>{
      'version': instance.version,
      'urls': instance.urls,
    };
