CockpitTextInputRequest.fromJson constructor
Implementation
factory CockpitTextInputRequest.fromJson(Map<String, Object?> json) {
return CockpitTextInputRequest(
text: json['text'] as String?,
selectionBase: json['selectionBase'] as int?,
selectionExtent: json['selectionExtent'] as int?,
inputAction: CockpitTextInputAction.maybeFromJson(json['inputAction']),
requestFocus: json['requestFocus'] as bool? ?? true,
clearExisting: json['clearExisting'] as bool? ?? false,
);
}