deserializeCommand method Null safety

  1. @override
Command deserializeCommand(
  1. Map<String, String> params,
  2. DeserializeFinderFactory finderFactory
)
override

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

Implementation

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

  return super.deserializeCommand(params, finderFactory);
}