encode<V> static method
Implementation
static V encode<V>(
ReportingReportRunCreateOptions 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.parameters != null) {
ReportRunParameters.encode(
instance.parameters!,
container.nestedSingleValueContainer('parameters').encoder,
);
}
container.encodeString(
'report_type',
instance.reportType,
);
return container.value;
}