encode<V> static method
Implementation
static V encode<V>(
AuthorizationFuel instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.type != null) {
container.encodeString(
'type',
instance.type!,
);
}
if (instance.unit != null) {
container.encodeString(
'unit',
instance.unit!,
);
}
if (instance.unitCostDecimal != null) {
container.encodeString(
'unit_cost_decimal',
instance.unitCostDecimal!,
);
}
if (instance.volumeDecimal != null) {
container.encodeString(
'volume_decimal',
instance.volumeDecimal!,
);
}
return container.value;
}