toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (alertStrategy != null) 'alertStrategy': alertStrategy!,
  if (combiner != null) 'combiner': combiner!,
  if (conditions != null) 'conditions': conditions!,
  if (creationRecord != null) 'creationRecord': creationRecord!,
  if (displayName != null) 'displayName': displayName!,
  if (documentation != null) 'documentation': documentation!,
  if (enabled != null) 'enabled': enabled!,
  if (mutationRecord != null) 'mutationRecord': mutationRecord!,
  if (name != null) 'name': name!,
  if (notificationChannels != null)
    'notificationChannels': notificationChannels!,
  if (severity != null) 'severity': severity!,
  if (userLabels != null) 'userLabels': userLabels!,
  if (validity != null) 'validity': validity!,
};