toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"generatedAt": generatedAt.toIso8601String(),
"fromDate": fromDate.toIso8601String(),
"toDate": toDate.toIso8601String(),
"usersCount": usersCount,
"newUsersCount": newUsersCount,
"merchantsCount": merchantsCount,
"newMerchantsCount": newMerchantsCount,
"terminalsCount": terminalsCount,
"terminalsAssignedCount": terminalsAssignedCount,
"terminalsUnassignedCount": terminalsUnassignedCount,
"txnCount": txnCount,
"newTxnCount": newTxnCount,
"walletsCount": walletsCount,
"totalWalletBalance": totalWalletBalance,
"totalIn": totalIn,
"totalOut": totalOut,
"net": net,
"txnByStatus": List<dynamic>.from(txnByStatus.map((UAccountingBreakdownItem x) => x.toMap())),
"txnByMethod": List<dynamic>.from(txnByMethod.map((UAccountingBreakdownItem x) => x.toMap())),
"terminalsByType": List<dynamic>.from(terminalsByType.map((UAccountingBreakdownItem x) => x.toMap())),
"dailyTimeline": List<dynamic>.from(dailyTimeline.map((UAccountingTimelineItem x) => x.toMap())),
"topMerchants": List<dynamic>.from(topMerchants.map((UTopMerchantItem x) => x.toMap())),
"recentTransactions": List<dynamic>.from(recentTransactions.map((URecentTxnItem x) => x.toMap())),
"recentMerchants": List<dynamic>.from(recentMerchants.map((URecentMerchantItem x) => x.toMap())),
"recentUsers": List<dynamic>.from(recentUsers.map((URecentUserItem x) => x.toMap())),
};