encode<V> static method
Implementation
static V encode<V>(
CancellationDetails instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.comment != null) {
container.encodeString(
'comment',
instance.comment!,
);
}
if (instance.feedback != null) {
container.encodeString(
'feedback',
instance.feedback!,
);
}
if (instance.reason != null) {
container.encodeString(
'reason',
instance.reason!,
);
}
return container.value;
}