// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'server.dart';

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

_EmbyServer _$EmbyServerFromJson(Map<String, dynamic> json) => _EmbyServer(
  id: json['id'] as String,
  name: json['name'] as String,
  baseUrl: json['baseUrl'] as String,
  createdAt: json['createdAt'] as String,
  updatedAt: json['updatedAt'] as String,
  lastConnectedAt: json['lastConnectedAt'] as String?,
  iconUrl: json['iconUrl'] == null ? '' : _stringOrEmpty(json['iconUrl']),
  paused: json['paused'] as bool? ?? false,
);

Map<String, dynamic> _$EmbyServerToJson(_EmbyServer instance) =>
    <String, dynamic>{
      'id': instance.id,
      'name': instance.name,
      'baseUrl': instance.baseUrl,
      'createdAt': instance.createdAt,
      'updatedAt': instance.updatedAt,
      'lastConnectedAt': ?instance.lastConnectedAt,
      'iconUrl': ?_emptyStringToNull(instance.iconUrl),
      'paused': instance.paused,
    };

_EmbyServerSaveReq _$EmbyServerSaveReqFromJson(Map<String, dynamic> json) =>
    _EmbyServerSaveReq(
      id: json['id'] as String?,
      name: json['name'] as String,
      baseUrl: json['baseUrl'] as String,
      iconUrl: json['iconUrl'] == null ? '' : _stringOrEmpty(json['iconUrl']),
    );

Map<String, dynamic> _$EmbyServerSaveReqToJson(_EmbyServerSaveReq instance) =>
    <String, dynamic>{
      'id': ?instance.id,
      'name': instance.name,
      'baseUrl': instance.baseUrl,
      'iconUrl': ?_emptyStringToNull(instance.iconUrl),
    };

_EmbyServerProbeReq _$EmbyServerProbeReqFromJson(Map<String, dynamic> json) =>
    _EmbyServerProbeReq(baseUrl: json['baseUrl'] as String);

Map<String, dynamic> _$EmbyServerProbeReqToJson(_EmbyServerProbeReq instance) =>
    <String, dynamic>{'baseUrl': instance.baseUrl};

_ProbePublicInfoRes _$ProbePublicInfoResFromJson(Map<String, dynamic> json) =>
    _ProbePublicInfoRes(
      serverName: json['serverName'] as String,
      version: json['version'] as String,
      productName: json['productName'] as String,
    );

Map<String, dynamic> _$ProbePublicInfoResToJson(_ProbePublicInfoRes instance) =>
    <String, dynamic>{
      'serverName': instance.serverName,
      'version': instance.version,
      'productName': instance.productName,
    };
