encode<V> static method
Implementation
static V encode<V>(
AuthorizationReceiptItem instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.description != null) {
container.encodeString(
'description',
instance.description!,
);
}
if (instance.quantity != null) {
container.encodeString(
'quantity',
instance.quantity!,
);
}
if (instance.total != null) {
container.encodeInt(
'total',
instance.total!,
);
}
if (instance.unitCost != null) {
container.encodeInt(
'unit_cost',
instance.unitCost!,
);
}
return container.value;
}