// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'working_site_model.dart';

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

WorkingSiteModel _$WorkingSiteModelFromJson(Map<String, dynamic> json) =>
    WorkingSiteModel(
      id: json['id'] as String?,
      avatar: json['avatar'] as String?,
      primaryMembership:
          json['primary_membership'] == null
              ? null
              : PrimaryMembershipModel.fromJson(
                json['primary_membership'] as Map<String, dynamic>,
              ),
    );

Map<String, dynamic> _$WorkingSiteModelToJson(WorkingSiteModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'avatar': instance.avatar,
      'primary_membership': instance.primaryMembership,
    };

PrimaryMembershipModel _$PrimaryMembershipModelFromJson(
  Map<String, dynamic> json,
) => PrimaryMembershipModel(
  membershipLevel:
      json['membership_level'] == null
          ? null
          : MembershipLevelShortModel.fromJson(
            json['membership_level'] as Map<String, dynamic>,
          ),
);

Map<String, dynamic> _$PrimaryMembershipModelToJson(
  PrimaryMembershipModel instance,
) => <String, dynamic>{'membership_level': instance.membershipLevel};

MembershipLevelShortModel _$MembershipLevelShortModelFromJson(
  Map<String, dynamic> json,
) => MembershipLevelShortModel(
  levelId: json['levelId'] as String?,
  levelCode: json['level_code'] as String?,
  levelName: json['level_name'] as String?,
  levelLogo: json['level_logo'] as String?,
);

Map<String, dynamic> _$MembershipLevelShortModelToJson(
  MembershipLevelShortModel instance,
) => <String, dynamic>{
  'levelId': instance.levelId,
  'level_code': instance.levelCode,
  'level_name': instance.levelName,
  'level_logo': instance.levelLogo,
};
