factory AvailSuppression.fromJson(Map<String, dynamic> json) { return AvailSuppression( mode: (json['Mode'] as String?)?.toMode(), value: json['Value'] as String?, ); }