FinancialChartRequest constructor

FinancialChartRequest({
  1. String? firmId,
  2. Iterable<String>? boutiqueIds,
  3. Timestamp? start,
  4. Timestamp? end,
  5. ChartTimePeriod? timePeriod,
  6. FinancialChartMetric? metric,
  7. bool? stackedByBoutique,
})

Implementation

factory FinancialChartRequest({
  $core.String? firmId,
  $core.Iterable<$core.String>? boutiqueIds,
  $20.Timestamp? start,
  $20.Timestamp? end,
  ChartTimePeriod? timePeriod,
  FinancialChartMetric? metric,
  $core.bool? stackedByBoutique,
}) {
  final result = create();
  if (firmId != null) {
    result.firmId = firmId;
  }
  if (boutiqueIds != null) {
    result.boutiqueIds.addAll(boutiqueIds);
  }
  if (start != null) {
    result.start = start;
  }
  if (end != null) {
    result.end = end;
  }
  if (timePeriod != null) {
    result.timePeriod = timePeriod;
  }
  if (metric != null) {
    result.metric = metric;
  }
  if (stackedByBoutique != null) {
    result.stackedByBoutique = stackedByBoutique;
  }
  return result;
}