deserializeCommand method
- Map<
String, String> params, - DeserializeFinderFactory finderFactory, {
- 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);
}