Map<String, dynamic> toMap() => { "expiration": expiration, "pubkey": pubkey, "targets": targets, }..removeWhere((key, value) => value == null);