build method
Builds a plugin from the given name
and json
. If name
is registered,
this will build a plugin using the registered factory. Otherwise, an
UnknownPluginConfig
instance is returned.
Implementation
AmplifyPluginConfig build(String name, Map<String, Object?> json) {
final factory = _plugins[name] ?? UnknownPluginConfigFactory(name);
return factory.build(json);
}