PromptFeedback.fromJson constructor

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

Implementation

PromptFeedback.fromJson(Map<String, dynamic> json) {
  if (json['safetyRatings'] != null) {
    safetyRatings = <SafetyRatings>[];
    json['safetyRatings'].forEach((v) {
      safetyRatings!.add(SafetyRatings.fromJson(v));
    });
  }
}