map<R> method
Adds domain conversions while preserving this codec's storage family.
Implementation
Codec<R> map<R>(R Function(T) from, T Function(R) to) => Codec(
sqlType,
(value) => from(decode(value)),
(value) => encode(to(value)),
);