// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'login_response.model.dart';

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

LoginResponse _$LoginResponseFromJson(Map<String, dynamic> json) {
  return LoginResponse()
    ..access_token = json['access_token'] as String
    ..token_type = json['token_type'] as String
    ..expires_in = json['expires_in'] as int
    ..subscriptions = (json['subscriptions'] as List)
        ?.map((e) => e == null ? null : SubscriptionSelection.fromJson(e as Map<String, dynamic>))
        ?.toList()
    ..user = json['user'] == null
        ? null
        : User.fromJson(json['user'] as Map<String, dynamic>);
}

Map<String, dynamic> _$LoginResponseToJson(LoginResponse instance) =>
    <String, dynamic>{
      'access_token': instance.access_token,
      'token_type': instance.token_type,
      'expires_in': instance.expires_in,
      'user': instance.user,
      "subscriptions" : instance.subscriptions
    };
