toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (eventTime != null) 'eventTime': eventTime!,
if (sessionState != null) 'sessionState': sessionState!,
if (stateMessage != null) 'stateMessage': stateMessage!,
};