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