encode<V> static method
Implementation
static V encode<V>(
TokenPii instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.idNumber != null) {
container.encodeString(
'id_number',
instance.idNumber!,
);
}
return container.value;
}