toJson method

Map<String, dynamic> toJson({
  1. bool toUpperText = false,
})

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,
  };
}