deserializeCommand method

  1. @override
Command deserializeCommand(
  1. Map<String, String> params,
  2. DeserializeFinderFactory finderFactory, {
  3. String? path,
})
override

Deserializes the finder from JSON generated by Command.serialize or CommandWithTarget.serialize.

The path is the current path to the params object from the parent object.

Implementation

@override
Command deserializeCommand(
  Map<String, String> params,
  DeserializeFinderFactory finderFactory, {
  String? path,
}) {
  final String? kind = params['command'];
  if (_commandExtensions.containsKey(kind)) {
    return _commandExtensions[kind]!.deserialize(params, finderFactory, this);
  }

  return super.deserializeCommand(params, finderFactory, path: path);
}