Map<String, dynamic> toJson() { return { 'transaction_identifiers': transactionIdentifiers.map((e) => e.toJson()).toList(), }..removeWhere((key, value) => value == null); }