optionallySerialize

abstract fun optionallySerialize(encoder: Encoder, value: T): Boolean