encode<V> static method
Implementation
static V encode<V>(
InvoiceId instance,
Encoder<V> encoder,
) {
final container = encoder.singleValueContainer();
instance.id == null
? container.encodeNull()
: container.encodeString(instance.id!);
return container.value;
}