toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (description != null) 'description': description!,
  if (details != null) 'details': details!,
  if (displayValue != null) 'displayValue': displayValue!,
  if (errorMessage != null) 'errorMessage': errorMessage!,
  if (explanation != null) 'explanation': explanation!,
  if (id != null) 'id': id!,
  if (metricSavings != null) 'metricSavings': metricSavings!,
  if (numericUnit != null) 'numericUnit': numericUnit!,
  if (numericValue != null) 'numericValue': numericValue!,
  if (score != null) 'score': score!,
  if (scoreDisplayMode != null) 'scoreDisplayMode': scoreDisplayMode!,
  if (title != null) 'title': title!,
  if (warnings != null) 'warnings': warnings!,
};