ModelConfig.fromSnapshot constructor
ModelConfig.fromSnapshot(
- String snapshotPath
Implementation
factory ModelConfig.fromSnapshot(String snapshotPath) {
final json =
jsonDecode(File('$snapshotPath/config.json').readAsStringSync())
as Map<String, Object?>;
return ModelConfig.fromJson(json);
}