encode<V> static method

V encode<V>(
  1. SubscriptionCancellationDetails instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  SubscriptionCancellationDetails 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!,
    );
  }
  return container.value;
}