@override Map<String, dynamic> toMap() { return { ...super.toMap(), 'params': { if (paymentHash != null) 'payment_hash': paymentHash, if (invoice != null) 'invoice': invoice, } }; }