toJson method
Create json representation of the ScriptConfig.
Implementation
Map<String, Object> toJson() {
return <String, Object>{
'operatingSystem': operatingSystem,
'projectType': projectType,
'projectDir': projectDir.path,
'hooksDir': hooksDir.path,
'commitMessageRule': commitMessageRule,
'preCommitConfig': preCommitConfig.toJson(),
};
}