encode<V> static method
V
encode<V>(
- TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions instance,
- Encoder<
V> encoder
Implementation
static V encode<V>(
TreasuryOutboundPaymentsResourceOutboundPaymentResourceStatusTransitions
instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.canceledAt != null) {
container.encodeDateTime(
'canceled_at',
instance.canceledAt!,
);
}
if (instance.failedAt != null) {
container.encodeDateTime(
'failed_at',
instance.failedAt!,
);
}
if (instance.postedAt != null) {
container.encodeDateTime(
'posted_at',
instance.postedAt!,
);
}
if (instance.returnedAt != null) {
container.encodeDateTime(
'returned_at',
instance.returnedAt!,
);
}
return container.value;
}