SendTextInputAction.deserialize constructor

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

Deserializes this command from the value generated by serialize.

Implementation

SendTextInputAction.deserialize(super.json, {String? path})
  : textInputAction = json.containsKey('action')
        ? _textInputActionIndex.lookupBySimpleName(
            json['action']!,
            path: path == null ? 'action' : '$path.action',
          )
        : throw ArgumentError.notNull(path == null ? 'action' : '$path.action'),
    super.deserialize();