create a custom parameter codec
const CustomParameterCodec({required this.encode, required this.decode});