ThreatWeight.fromJson constructor

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

Implementation

factory ThreatWeight.fromJson(Map<String, dynamic> json) {
  try {
    return _$ThreatWeightFromJson(json);
  } catch (e) {
    throw CustomInvalidMapKeyException(message: e);
  }
}