toJson method

Map<String, Object?> toJson()

Encodes this CockpitTextInputRequest as a JSON object.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'text': text,
  'selectionBase': selectionBase,
  'selectionExtent': selectionExtent,
  'inputAction': inputAction?.name,
  'requestFocus': requestFocus,
  'clearExisting': clearExisting,
};