Severity.fromJson constructor

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

Implementation

factory Severity.fromJson(Map<String, dynamic> json) {
  return Severity(
    label: (json['Label'] as String?)?.toSeverityLabel(),
    normalized: json['Normalized'] as int?,
    original: json['Original'] as String?,
    product: json['Product'] as double?,
  );
}