encode<V> static method
Implementation
static V encode<V>(
AccountSessionCreateOptions instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'account',
instance.account,
);
AccountSessionComponents.encode(
instance.components,
container.nestedSingleValueContainer('components').encoder,
);
if (instance.expand != null) {
container.encodeList(
'expand',
(container) =>
instance.expand!.forEach((el) => container.encodeString(el)),
);
}
return container.value;
}