encode<V> static method
V
encode<V>(
- TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
TreasuryTransactionsResourceAbstractTransactionResourceStatusTransitions
instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.postedAt != null) {
container.encodeDateTime(
'posted_at',
instance.postedAt!,
);
}
if (instance.voidAt != null) {
container.encodeDateTime(
'void_at',
instance.voidAt!,
);
}
return container.value;
}