Questionnaire.fromJson constructor Null safety

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

Implementation

Questionnaire.fromJson(Map<String, dynamic> json) {
    responseCode = json['response_code'];
    if (json['results'] != null) {
        results = <Results>[];
        json['results'].forEach((v) {
            results.add(Results.fromJson(v));
        });
    }
}