Converts this config to a JSON-RPC params map.
Map<String, Object?> toJson() { final json = <String, Object?>{}; if (commitment != null) json['commitment'] = commitment!.name; return json; }