encode<V> static method
Implementation
static V encode<V>(
InvoicesResourceStatusTransitions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.finalizedAt != null) {
container.encodeDateTime(
'finalized_at',
instance.finalizedAt!,
);
}
if (instance.markedUncollectibleAt != null) {
container.encodeDateTime(
'marked_uncollectible_at',
instance.markedUncollectibleAt!,
);
}
if (instance.paidAt != null) {
container.encodeDateTime(
'paid_at',
instance.paidAt!,
);
}
if (instance.voidedAt != null) {
container.encodeDateTime(
'voided_at',
instance.voidedAt!,
);
}
return container.value;
}