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