GetStoredTransactionsWithStateResponse.fromMap constructor
GetStoredTransactionsWithStateResponse.fromMap(
- Map<String, dynamic> map
)
Implementation
factory GetStoredTransactionsWithStateResponse.fromMap(
Map<String, dynamic> map,
) {
final transactionsList =
(map['transactions'] as List<dynamic>?)
?.map(
(e) =>
StoredTransactionRecord.fromMap(Map<String, dynamic>.from(e)),
)
.toList() ??
[];
return GetStoredTransactionsWithStateResponse(
success: map['success'] as bool? ?? false,
count: map['count'] as int? ?? 0,
state: map['state'] as String?,
transactions: transactionsList,
errorMessage: map['errorMessage'] as String?,
);
}