// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'car_user.dart';

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

CarUser _$CarUserFromJson(Map<String, dynamic> json) => CarUser(
      id: json['id'] as String?,
      name: json['name'] as String,
      email: json['email'] as String,
      cars: (json['cars'] as List<dynamic>).map((e) => e as String).toList(),
      archivedCars: (json['archivedCars'] as List<dynamic>)
          .map((e) => e as String)
          .toSet(),
      fcmTokens:
          (json['fcmTokens'] as List<dynamic>).map((e) => e as String).toSet(),
      licenceExpiration: json['licenceExpiration'] == null
          ? null
          : DateTime.parse(json['licenceExpiration'] as String),
    );

Map<String, dynamic> _$CarUserToJson(CarUser instance) => <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'email': instance.email,
      'cars': instance.cars,
      'archivedCars': instance.archivedCars.toList(),
      'fcmTokens': instance.fcmTokens.toList(),
      'licenceExpiration': instance.licenceExpiration?.toIso8601String(),
    };
