ViolationSetting.fromJson constructor

ViolationSetting.fromJson(
  1. Map<String, dynamic> json
)

Implementation

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