encode<V> static method

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

Implementation

static V encode<V>(
  SubscriptionPauseCollection instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'behavior',
    instance.behavior,
  );
  if (instance.resumesAt != null) {
    container.encodeDateTime(
      'resumes_at',
      instance.resumesAt!,
    );
  }
  return container.value;
}