encode<V> static method
Implementation
static V encode<V>(
IssuingDisputeServiceNotAsDescribedEvidence instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.additionalDocumentation != null) {
FileOrId.encode(
instance.additionalDocumentation!,
container
.nestedSingleValueContainer('additional_documentation')
.encoder,
);
}
if (instance.canceledAt != null) {
container.encodeDateTime(
'canceled_at',
instance.canceledAt!,
);
}
if (instance.cancellationReason != null) {
container.encodeString(
'cancellation_reason',
instance.cancellationReason!,
);
}
if (instance.explanation != null) {
container.encodeString(
'explanation',
instance.explanation!,
);
}
if (instance.receivedAt != null) {
container.encodeDateTime(
'received_at',
instance.receivedAt!,
);
}
return container.value;
}