encode<V> static method
Implementation
static V encode<V>(
PortalBusinessProfile instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.headline != null) {
container.encodeString(
'headline',
instance.headline!,
);
}
if (instance.privacyPolicyUrl != null) {
container.encodeString(
'privacy_policy_url',
instance.privacyPolicyUrl!,
);
}
if (instance.termsOfServiceUrl != null) {
container.encodeString(
'terms_of_service_url',
instance.termsOfServiceUrl!,
);
}
return container.value;
}