encode<V> static method
Implementation
static V encode<V>(
IssuingDisputeMerchandiseNotAsDescribedEvidence instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.additionalDocumentation != null) {
FileOrId.encode(
instance.additionalDocumentation!,
container
.nestedSingleValueContainer('additional_documentation')
.encoder,
);
}
if (instance.explanation != null) {
container.encodeString(
'explanation',
instance.explanation!,
);
}
if (instance.receivedAt != null) {
container.encodeDateTime(
'received_at',
instance.receivedAt!,
);
}
if (instance.returnDescription != null) {
container.encodeString(
'return_description',
instance.returnDescription!,
);
}
if (instance.returnStatus != null) {
IssuingDisputeCanceledEvidenceReturnStatus.encode(
instance.returnStatus!,
container.nestedSingleValueContainer('return_status').encoder,
);
}
if (instance.returnedAt != null) {
container.encodeDateTime(
'returned_at',
instance.returnedAt!,
);
}
return container.value;
}