factory InvalidRuleException.fromJson(Map<String, dynamic> json) { return InvalidRuleException( message: json['Message'] as String?, ); }