toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'transactions': transactions.map((e) => e.toJson()),
'total_count': totalCount ?? transactions.length,
'next_offset': nextOffset,
}..removeWhere((key, value) => value == null);
}