// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'auth.dart';

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

_AuthByNameReq _$AuthByNameReqFromJson(Map<String, dynamic> json) =>
    _AuthByNameReq(
      serverId: json['serverId'] as String,
      username: json['username'] as String,
      password: json['password'] as String,
    );

Map<String, dynamic> _$AuthByNameReqToJson(_AuthByNameReq instance) =>
    <String, dynamic>{
      'serverId': instance.serverId,
      'username': instance.username,
      'password': instance.password,
    };

_SessionData _$SessionDataFromJson(Map<String, dynamic> json) => _SessionData(
  serverId: json['serverId'] as String,
  token: json['token'] as String,
  userId: json['userId'] as String,
  userName: json['userName'] as String,
  password: json['password'] as String?,
  createdAt: json['createdAt'] as String,
);

Map<String, dynamic> _$SessionDataToJson(_SessionData instance) =>
    <String, dynamic>{
      'serverId': instance.serverId,
      'token': instance.token,
      'userId': instance.userId,
      'userName': instance.userName,
      'password': ?instance.password,
      'createdAt': instance.createdAt,
    };

_AuthedSession _$AuthedSessionFromJson(Map<String, dynamic> json) =>
    _AuthedSession(
      serverId: json['serverId'] as String,
      serverName: json['serverName'] as String,
      serverUrl: json['serverUrl'] as String,
      token: json['token'] as String,
      userId: json['userId'] as String,
      userName: json['userName'] as String,
      password: json['password'] as String?,
      isActive: json['isActive'] as bool,
    );

Map<String, dynamic> _$AuthedSessionToJson(_AuthedSession instance) =>
    <String, dynamic>{
      'serverId': instance.serverId,
      'serverName': instance.serverName,
      'serverUrl': instance.serverUrl,
      'token': instance.token,
      'userId': instance.userId,
      'userName': instance.userName,
      'password': ?instance.password,
      'isActive': instance.isActive,
    };

_SessionListRes _$SessionListResFromJson(Map<String, dynamic> json) =>
    _SessionListRes(
      sessions: (json['sessions'] as List<dynamic>)
          .map((e) => AuthedSession.fromJson(e as Map<String, dynamic>))
          .toList(),
      activeServerId: json['activeServerId'] as String?,
    );

Map<String, dynamic> _$SessionListResToJson(_SessionListRes instance) =>
    <String, dynamic>{
      'sessions': instance.sessions,
      'activeServerId': instance.activeServerId,
    };
