ModelConfig.fromSnapshot constructor

ModelConfig.fromSnapshot(
  1. String snapshotPath
)

Implementation

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