Function that converts from type I to type O
I
O
@override O serialize(I value) => _serialize(value);