encode<V> static method
Implementation
static V encode<V>(
ReportRunParameters instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.columns != null) {
container.encodeList(
'columns',
(container) =>
instance.columns!.forEach((el) => container.encodeString(el)),
);
}
if (instance.connectedAccount != null) {
container.encodeString(
'connected_account',
instance.connectedAccount!,
);
}
if (instance.currency != null) {
container.encodeString(
'currency',
instance.currency!,
);
}
if (instance.intervalEnd != null) {
container.encodeDateTime(
'interval_end',
instance.intervalEnd!,
);
}
if (instance.intervalStart != null) {
container.encodeDateTime(
'interval_start',
instance.intervalStart!,
);
}
if (instance.payout != null) {
container.encodeString(
'payout',
instance.payout!,
);
}
if (instance.reportingCategory != null) {
container.encodeString(
'reporting_category',
instance.reportingCategory!,
);
}
if (instance.timezone != null) {
container.encodeString(
'timezone',
instance.timezone!,
);
}
return container.value;
}