encode<V> static method
Implementation
static V encode<V>(
FileCreateOptions 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.fileLinkData != null) {
FileLinkData.encode(
instance.fileLinkData!,
container.nestedSingleValueContainer('file_link_data').encoder,
);
}
container.encodeString(
'purpose',
instance.purpose,
);
return container.value;
}