SafetyRatings.fromJson constructor

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

Implementation

SafetyRatings.fromJson(Map<String, dynamic> json) {
  category = json['category'];
  probability = json['probability'];
}