encode<V> static method
Implementation
static V encode<V>(
DisputeNotReceived instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.additionalDocumentation != null) {
container.encodeString(
'additional_documentation',
instance.additionalDocumentation!,
);
}
if (instance.expectedAt != null) {
container.encodeDateTime(
'expected_at',
instance.expectedAt!,
);
}
if (instance.explanation != null) {
container.encodeString(
'explanation',
instance.explanation!,
);
}
if (instance.productDescription != null) {
container.encodeString(
'product_description',
instance.productDescription!,
);
}
if (instance.productType != null) {
DisputeProductType.encode(
instance.productType!,
container.nestedSingleValueContainer('product_type').encoder,
);
}
return container.value;
}