toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (context != null) 'context': context!,
      if (eventTime != null) 'eventTime': eventTime!,
      if (message != null) 'message': message!,
      if (serviceContext != null) 'serviceContext': serviceContext!,
    };