encode<V> static method
Implementation
static V encode<V>(
TaxProductResourceJurisdiction instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'country',
instance.country,
);
container.encodeString(
'display_name',
instance.displayName,
);
container.encodeString(
'level',
instance.level,
);
if (instance.state != null) {
container.encodeString(
'state',
instance.state!,
);
}
return container.value;
}