// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'statement_model.dart';

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

TransactionModel _$TransactionModelFromJson(Map<String, dynamic> json) =>
    TransactionModel(
      name: json['name'] as String,
      narration: json['narration'] as String,
      party: json['party'] as String,
      company: json['company'] as String,
      postingDate: json['postingDate'] as String,
      amount: (json['amount'] as num).toDouble(),
      account: json['account'] as String,
      accountName: json['accountName'] as String,
      currency: json['currency'] as String,
      type: json['type'] as String,
      balance: (json['balance'] as num).toDouble(),
    );

Map<String, dynamic> _$TransactionModelToJson(TransactionModel instance) =>
    <String, dynamic>{
      'name': instance.name,
      'narration': instance.narration,
      'party': instance.party,
      'company': instance.company,
      'postingDate': instance.postingDate,
      'amount': instance.amount,
      'account': instance.account,
      'accountName': instance.accountName,
      'currency': instance.currency,
      'type': instance.type,
      'balance': instance.balance,
    };

StatementModel _$StatementModelFromJson(Map<String, dynamic> json) =>
    StatementModel(
      startBalance: (json['startBalance'] as num).toInt(),
      endBalance: (json['endBalance'] as num).toDouble(),
      transactions: (json['transactions'] as List<dynamic>)
          .map((e) => TransactionModel.fromJson(e as Map<String, dynamic>))
          .toList(),
      accountName: json['accountName'] as String,
      accountNumber: json['accountNumber'] as String,
      startDate: json['startDate'] as String,
      endDate: json['endDate'] as String,
    );

Map<String, dynamic> _$StatementModelToJson(StatementModel instance) =>
    <String, dynamic>{
      'startBalance': instance.startBalance,
      'endBalance': instance.endBalance,
      'transactions': instance.transactions,
      'accountName': instance.accountName,
      'accountNumber': instance.accountNumber,
      'startDate': instance.startDate,
      'endDate': instance.endDate,
    };
