toJson method
Returns the data field of SecureKeyboardKey in JSON format.
Implementation
Map<String, dynamic> toJson({bool toUpperText = false}) {
return {
'text': toUpperText ? text?.toUpperCase() : text,
'type': type,
'action': action,
};
}