// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'frappe_session_model.dart';

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

FrappeSessionData _$FrappeSessionDataFromJson(Map<String, dynamic> json) =>
    $checkedCreate('FrappeSessionData', json, ($checkedConvert) {
      final val = FrappeSessionData(
        sid: $checkedConvert('sid', (v) => v as String),
        csrfToken: $checkedConvert('csrf_token', (v) => v as String),
      );
      return val;
    }, fieldKeyMap: const {'csrfToken': 'csrf_token'});

Map<String, dynamic> _$FrappeSessionDataToJson(FrappeSessionData instance) =>
    <String, dynamic>{'sid': instance.sid, 'csrf_token': instance.csrfToken};

FrappeSessionMessage _$FrappeSessionMessageFromJson(
  Map<String, dynamic> json,
) => $checkedCreate('FrappeSessionMessage', json, ($checkedConvert) {
  final val = FrappeSessionMessage(
    data: $checkedConvert(
      'data',
      (v) => FrappeSessionData.fromJson(v as Map<String, dynamic>),
    ),
  );
  return val;
});

Map<String, dynamic> _$FrappeSessionMessageToJson(
  FrappeSessionMessage instance,
) => <String, dynamic>{'data': instance.data.toJson()};

FrappeSessionResponse _$FrappeSessionResponseFromJson(
  Map<String, dynamic> json,
) => $checkedCreate(
  'FrappeSessionResponse',
  json,
  ($checkedConvert) {
    final val = FrappeSessionResponse(
      message: $checkedConvert(
        'message',
        (v) => FrappeSessionMessage.fromJson(v as Map<String, dynamic>),
      ),
      homePage: $checkedConvert('home_page', (v) => v as String),
      fullName: $checkedConvert('full_name', (v) => v as String),
    );
    return val;
  },
  fieldKeyMap: const {'homePage': 'home_page', 'fullName': 'full_name'},
);

Map<String, dynamic> _$FrappeSessionResponseToJson(
  FrappeSessionResponse instance,
) => <String, dynamic>{
  'message': instance.message.toJson(),
  'home_page': instance.homePage,
  'full_name': instance.fullName,
};
