toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (info != null) 'info': info!,
      if (metric != null) 'metric': metric!,
      if (metricSpecific != null) 'metricSpecific': metricSpecific!,
      if (severity != null) 'severity': severity!,
      if (shortMessage != null) 'shortMessage': shortMessage!,
    };