toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'requestId': requestId,
  'sessionId': sessionId,
  'revision': revision,
  'action': action.name,
  if (targetId != null) 'targetId': targetId,
  if (text != null) 'text': text,
};