toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final expression = this.expression;
  final label = this.label;
  final metricStat = this.metricStat;
  final period = this.period;
  final returnData = this.returnData;
  return {
    'Id': id,
    if (expression != null) 'Expression': expression,
    if (label != null) 'Label': label,
    if (metricStat != null) 'MetricStat': metricStat,
    if (period != null) 'Period': period,
    if (returnData != null) 'ReturnData': returnData,
  };
}