ViolationSetting.fromJson constructor
Implementation
factory ViolationSetting.fromJson(Map<String, dynamic> json) {
return ViolationSetting(
name: ViolationSettingName.fromJson(json['name'] as String),
threshold: json['threshold'] as num,
);
}