Rule.fromJson constructor
Parse Rule from json.
Implementation
factory Rule.fromJson(Map<String, dynamic> json) => Rule(
id: json['id'] as String,
description: json['description'] as String,
issueType: MistakeType.fromString(json['issueType'] as String),
category: Category.fromJson(json['category'] as Map<String, dynamic>),
isPremium: json['isPremium'] as bool,
);