toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (messageText != null) 'messageText': messageText!,
      if (messageTime != null) 'messageTime': messageTime!,
      if (severity != null) 'severity': severity!,
    };