Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects.fromJson constructor
Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects.fromJson()
Implementation
factory Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects.fromJson(
Map<String, dynamic> json) {
final l$id = json['id'];
final l$order = json['order'];
final l$form = json['form'];
final l$type = json['type'];
final l$title = json['title'];
final l$description = json['description'];
final l$choices = json['choices'];
final l$settings = json['settings'];
final l$createdAt = json['createdAt'];
final l$updatedAt = json['updatedAt'];
final l$responses = json['responses'];
final l$$__typename = json['__typename'];
return Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects(
id: (l$id as String),
order: (l$order as int?),
form: l$form == null
? null
: Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects$form
.fromJson((l$form as Map<String, dynamic>)),
type: l$type == null
? null
: fromJson$Enum$QuestionTypeEnum((l$type as String)),
title: (l$title as String?),
description: (l$description as String?),
choices: (l$choices as List<dynamic>?)
?.map((e) =>
Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects$choices
.fromJson((e as Map<String, dynamic>)))
.toList(),
settings: l$settings == null
? null
: Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects$settings
.fromJson((l$settings as Map<String, dynamic>)),
createdAt: dateTimeFromJson(l$createdAt),
updatedAt: dateTimeFromJson(l$updatedAt),
responses: (l$responses as List<dynamic>?)
?.map((e) =>
Query$getQuestionsbyFormWithResponsesStatsPaginated$getQuestionsbyFormWithResponsesStatsPaginated$objects$responses
.fromJson((e as Map<String, dynamic>)))
.toList(),
$__typename: (l$$__typename as String),
);
}