// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'auth_login_response.dart';

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

AuthLoginUser _$AuthLoginUserFromJson(Map<String, dynamic> json) =>
    AuthLoginUser(
      id: json['id'] as String,
      username: json['username'] as String,
      firstName: json['firstName'] as String,
      lastName: json['lastName'] as String,
      userType: json['userType'] as String?,
      className: json['className'] as String?,
    );

Map<String, dynamic> _$AuthLoginUserToJson(AuthLoginUser instance) =>
    <String, dynamic>{
      'id': instance.id,
      'username': instance.username,
      'firstName': instance.firstName,
      'lastName': instance.lastName,
      'userType': instance.userType,
      'className': instance.className,
    };

AuthLoginResponse _$AuthLoginResponseFromJson(Map<String, dynamic> json) =>
    AuthLoginResponse(
      token: json['token'] as String,
      tokenId: json['tokenId'] as String,
      expiresAt: AuthLoginResponse._expiresFromJson(json['expiresAt']),
      user: AuthLoginUser.fromJson(json['user'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$AuthLoginResponseToJson(AuthLoginResponse instance) =>
    <String, dynamic>{
      'token': instance.token,
      'tokenId': instance.tokenId,
      'expiresAt': instance.expiresAt?.toIso8601String(),
      'user': instance.user,
    };
