GeneratorConfig.fromJson constructor
GeneratorConfig.fromJson(
- Map json
Implementation
factory GeneratorConfig.fromJson(Map json) {
return GeneratorConfig(
name: json['name'] as String,
output:
json['output'] == null ? null : Env.fromJson(json['output'] as Map),
isCustomOutput: (json['isCustomOutput'] as bool?) ?? false,
provider: Env.fromJson(json['provider'] as Map),
config: (json['config'] as Map).cast(),
binaryTargets: (json['binaryTargets'] as Iterable)
.map((e) => BinaryTargetsEnvValue.fromJson(e as Map)),
previewFeatures: (json['previewFeatures'] as Iterable).cast(),
);
}