// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'account_model.dart';

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

CurrencyModel _$CurrencyModelFromJson(Map<String, dynamic> json) =>
    CurrencyModel(
      id: json['id'] as String,
      createdAt: json['createdAt'] as String?,
      name: json['name'] as String,
      symbol: json['symbol'] as String,
      code: json['code'] as String,
      rate: (json['rate'] as num).toDouble(),
      defaultCurrency: json['defaultCurrency'] as bool,
    );

Map<String, dynamic> _$CurrencyModelToJson(CurrencyModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'createdAt': instance.createdAt,
      'name': instance.name,
      'symbol': instance.symbol,
      'code': instance.code,
      'rate': instance.rate,
      'defaultCurrency': instance.defaultCurrency,
    };

AccountModel _$AccountModelFromJson(Map<String, dynamic> json) => AccountModel(
  name: json['name'] as String,
  description: json['description'] as String,
  accountNumber: json['accountNumber'] as String,
  alternateAccountNumber: json['alternateAccountNumber'] as String,
  type: json['type'] as String,
  category: json['category'] as String,
  ledger: json['ledger'] as String,
  balance: (json['balance'] as num).toDouble(),
  partyType: json['partyType'] as String,
  party: json['party'] as String,
  currency: CurrencyModel.fromJson(json['currency'] as Map<String, dynamic>),
  customerStringId: json['customerStringId'] as String,
  companyStringId: json['companyStringId'] as String,
);

Map<String, dynamic> _$AccountModelToJson(AccountModel instance) =>
    <String, dynamic>{
      'name': instance.name,
      'description': instance.description,
      'accountNumber': instance.accountNumber,
      'alternateAccountNumber': instance.alternateAccountNumber,
      'type': instance.type,
      'category': instance.category,
      'ledger': instance.ledger,
      'balance': instance.balance,
      'partyType': instance.partyType,
      'party': instance.party,
      'currency': instance.currency,
      'customerStringId': instance.customerStringId,
      'companyStringId': instance.companyStringId,
    };
