Map<String, dynamic> toMap() { return { 'transactions': transactions?.map((x) => x.toMap()).toList(), }; }