encode<V> static method
Implementation
static V encode<V>(
IssuingDisputeEvidence instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.canceled != null) {
IssuingDisputeCanceledEvidence.encode(
instance.canceled!,
container.nestedSingleValueContainer('canceled').encoder,
);
}
if (instance.duplicate != null) {
IssuingDisputeDuplicateEvidence.encode(
instance.duplicate!,
container.nestedSingleValueContainer('duplicate').encoder,
);
}
if (instance.fraudulent != null) {
IssuingDisputeFraudulentEvidence.encode(
instance.fraudulent!,
container.nestedSingleValueContainer('fraudulent').encoder,
);
}
if (instance.merchandiseNotAsDescribed != null) {
IssuingDisputeMerchandiseNotAsDescribedEvidence.encode(
instance.merchandiseNotAsDescribed!,
container
.nestedSingleValueContainer('merchandise_not_as_described')
.encoder,
);
}
if (instance.notReceived != null) {
IssuingDisputeNotReceivedEvidence.encode(
instance.notReceived!,
container.nestedSingleValueContainer('not_received').encoder,
);
}
if (instance.other != null) {
IssuingDisputeOtherEvidence.encode(
instance.other!,
container.nestedSingleValueContainer('other').encoder,
);
}
container.encodeString(
'reason',
instance.reason,
);
if (instance.serviceNotAsDescribed != null) {
IssuingDisputeServiceNotAsDescribedEvidence.encode(
instance.serviceNotAsDescribed!,
container
.nestedSingleValueContainer('service_not_as_described')
.encoder,
);
}
return container.value;
}