EnterText.deserialize constructor

EnterText.deserialize(
  1. Map<String, String> json, {
  2. String? path,
})

Deserializes this command from the value generated by serialize.

Implementation

EnterText.deserialize(super.json, {String? path})
  : text = json.containsKey('text')
        ? json['text']!
        : throw ArgumentError.notNull(path == null ? 'text' : '$path.text'),
    super.deserialize();