parse method
Reads and deserialises the JSON schema file at path into a Schema.
Implementation
Schema parse(String path) {
final file = File(path);
if (!file.existsSync()) {
CommandHelper().error('Schema file not found: $path');
}
final json = jsonDecode(file.readAsStringSync());
return Schema.fromJson(json);
}