content: // GENERATED CODE - DO NOT MODIFY BY HAND
  
  part of 'user.dart';
  
  // **************************************************************************
  // JsonSerializableGenerator
  // **************************************************************************
  
  User _$UserFromJson(Map<String, dynamic> json) => User(
        createdAt: (json['createdAt'] as num?)?.toInt(),
        firstName: json['firstName'] as String?,
        id: json['id'] as String,
        imageUrl: json['imageUrl'] as String?,
        lastName: json['lastName'] as String?,
        lastSeen: (json['lastSeen'] as num?)?.toInt(),
        metadata: json['metadata'] as Map<String, dynamic>?,
        role: $enumDecodeNullable(_$RoleEnumMap, json['role']),
        updatedAt: (json['updatedAt'] as num?)?.toInt(),
      );
  
  Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{
        'createdAt': instance.createdAt,
        'firstName': instance.firstName,
        'id': instance.id,
        'imageUrl': instance.imageUrl,
        'lastName': instance.lastName,
        'lastSeen': instance.lastSeen,
        'metadata': instance.metadata,
        'role': _$RoleEnumMap[instance.role],
        'updatedAt': instance.updatedAt,
      };
  
  const _$RoleEnumMap = {
    Role.admin: 'admin',
    Role.agent: 'agent',
    Role.moderator: 'moderator',
    Role.user: 'user',
  };
  