toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (chartType != null) 'chartType': chartType!,
      if (comments != null) 'comments': comments!,
      if (createdAt != null) 'createdAt': createdAt!,
      if (dimensions != null) 'dimensions': dimensions!,
      if (displayName != null) 'displayName': displayName!,
      if (environment != null) 'environment': environment!,
      if (filter != null) 'filter': filter!,
      if (fromTime != null) 'fromTime': fromTime!,
      if (lastModifiedAt != null) 'lastModifiedAt': lastModifiedAt!,
      if (lastViewedAt != null) 'lastViewedAt': lastViewedAt!,
      if (limit != null) 'limit': limit!,
      if (metrics != null) 'metrics': metrics!,
      if (name != null) 'name': name!,
      if (offset != null) 'offset': offset!,
      if (organization != null) 'organization': organization!,
      if (properties != null) 'properties': properties!,
      if (sortByCols != null) 'sortByCols': sortByCols!,
      if (sortOrder != null) 'sortOrder': sortOrder!,
      if (tags != null) 'tags': tags!,
      if (timeUnit != null) 'timeUnit': timeUnit!,
      if (toTime != null) 'toTime': toTime!,
      if (topk != null) 'topk': topk!,
    };