encode<V> static method
Implementation
static V encode<V>(
AppsSecretCreateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
if (instance.expiresAt != null) {
container.encodeDateTime(
'expires_at',
instance.expiresAt!,
);
}
container.encodeString(
'name',
instance.name,
);
container.encodeString(
'payload',
instance.payload,
);
SecretServiceResourceScope.encode(
instance.scope,
container.nestedSingleValueContainer('scope').encoder,
);
return container.value;
}