// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'insurance.dart';

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

Insurance _$InsuranceFromJson(Map<String, dynamic> json) => Insurance(
      company: json['company'] as String,
      contractNumber: json['contractNumber'] as String,
      amount: json['amount'] as int,
      currency: $enumDecode(_$CurrencyEnumMap, json['currency']),
      expirationDate: DateTime.parse(json['expirationDate'] as String),
    );

Map<String, dynamic> _$InsuranceToJson(Insurance instance) => <String, dynamic>{
      'contractNumber': instance.contractNumber,
      'company': instance.company,
      'amount': instance.amount,
      'currency': _$CurrencyEnumMap[instance.currency]!,
      'expirationDate': instance.expirationDate.toIso8601String(),
    };

const _$CurrencyEnumMap = {
  Currency.GBP: 'GBP',
  Currency.USD: 'USD',
  Currency.EUR: 'EUR',
  Currency.CZK: 'CZK',
};
