encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDomainCreateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'domain_name',
instance.domainName,
);
if (instance.enabled != null) {
container.encodeBool(
'enabled',
instance.enabled!,
);
}
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
return container.value;
}