toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'id': accountId,
'name': name,
'created_at': createdAt?.millisecondsSinceEpoch,
'updated_at': updatedAt?.millisecondsSinceEpoch,
'can_receive': canReceive,
'is_verified': isVerified,
'last_verification_request_status': lastAccountVerificationRequestStatus,
'last_verification_request_data': lastAccountVerificationRequestData?.toMap(),
'last_verification_request_feedback': lastAccountVerificationRequestDataFeedback,
'change_plan_type': changePlanType,
'subscriptions_trial_period': subscriptionsTrialPeriod,
'disable_emails': disableEmails,
'last_withdraw': lastWithdraw?.toMap(),
'total_subscriptions': totalSubscriptions,
'reply_to': replyToEmail,
'webapp_on_test_mode': runningInTestMode,
'marketplace': isMarketplace,
'auto_withdraw': enableAutoWithdraw,
'balance': balance,
'protected_balance': protectedBalance,
'payable_balance': payableBalance,
'receivable_balance': receivableBalance,
'commission_balance': commissionBalance,
'volume_last_month': lastMonthVolume,
'volume_this_month': currentVolume,
'taxes_paid_last_month': taxesPaidLastMonth,
'taxes_paid_this_month': taxesPaidMonth,
'custom_logo_url': clientLogoUrl,
'custom_logo_small_url': clientSmallLogoUrl,
'informations': extraInformations?.map((x) => x.toMap()).toList(),
};
}