// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'license_request_dto.dart';

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

_$CreateLicenseRequestImpl _$$CreateLicenseRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$CreateLicenseRequestImpl(
      licenseKey: json['license_key'] as String,
      productName: json['product_name'] as String?,
      vendor: json['vendor'] as String?,
      licenseType: json['license_type'] as String?,
      userCount: (json['user_count'] as num?)?.toInt(),
      purchaseDate: _dateFromJson(json['purchase_date'] as String?),
      expiryDate: _dateFromJson(json['expiry_date'] as String?),
      purchasePrice: (json['purchase_price'] as num?)?.toDouble(),
      companyId: (json['company_id'] as num?)?.toInt(),
      branchId: (json['branch_id'] as num?)?.toInt(),
      remark: json['remark'] as String?,
    );

Map<String, dynamic> _$$CreateLicenseRequestImplToJson(
        _$CreateLicenseRequestImpl instance) =>
    <String, dynamic>{
      'license_key': instance.licenseKey,
      'product_name': instance.productName,
      'vendor': instance.vendor,
      'license_type': instance.licenseType,
      'user_count': instance.userCount,
      'purchase_date': _dateToJson(instance.purchaseDate),
      'expiry_date': _dateToJson(instance.expiryDate),
      'purchase_price': instance.purchasePrice,
      'company_id': instance.companyId,
      'branch_id': instance.branchId,
      'remark': instance.remark,
    };

_$UpdateLicenseRequestImpl _$$UpdateLicenseRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$UpdateLicenseRequestImpl(
      licenseKey: json['license_key'] as String?,
      productName: json['product_name'] as String?,
      vendor: json['vendor'] as String?,
      licenseType: json['license_type'] as String?,
      userCount: (json['user_count'] as num?)?.toInt(),
      purchaseDate: _dateFromJson(json['purchase_date'] as String?),
      expiryDate: _dateFromJson(json['expiry_date'] as String?),
      purchasePrice: (json['purchase_price'] as num?)?.toDouble(),
      remark: json['remark'] as String?,
      isActive: json['is_active'] as bool?,
    );

Map<String, dynamic> _$$UpdateLicenseRequestImplToJson(
        _$UpdateLicenseRequestImpl instance) =>
    <String, dynamic>{
      'license_key': instance.licenseKey,
      'product_name': instance.productName,
      'vendor': instance.vendor,
      'license_type': instance.licenseType,
      'user_count': instance.userCount,
      'purchase_date': _dateToJson(instance.purchaseDate),
      'expiry_date': _dateToJson(instance.expiryDate),
      'purchase_price': instance.purchasePrice,
      'remark': instance.remark,
      'is_active': instance.isActive,
    };

_$AssignLicenseRequestImpl _$$AssignLicenseRequestImplFromJson(
        Map<String, dynamic> json) =>
    _$AssignLicenseRequestImpl(
      userId: (json['user_id'] as num).toInt(),
    );

Map<String, dynamic> _$$AssignLicenseRequestImplToJson(
        _$AssignLicenseRequestImpl instance) =>
    <String, dynamic>{
      'user_id': instance.userId,
    };
