-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathmodel.json.dart
More file actions
85 lines (76 loc) · 2.79 KB
/
Copy pathmodel.json.dart
File metadata and controls
85 lines (76 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'model.dart';
bool _fromJsonFunctionsRegistered = false;
/// Register all the fromJson functions for the deployment domain classes.
void registerFromJsonFunctions() {
if (_fromJsonFunctionsRegistered) return;
_fromJsonFunctionsRegistered = true;
// AnswerFormat classes
FromJsonFactory().registerAll([
RPAnswerFormat(),
RPChoiceAnswerFormat(
answerStyle: RPChoiceAnswerStyle.SingleChoice, choices: []),
RPChoice(text: '', value: 1),
RPDateTimeAnswerFormat(dateTimeAnswerStyle: RPDateTimeAnswerStyle.Date),
RPFormAnswerFormat(),
RPImageChoiceAnswerFormat(choices: []),
RPImageChoice(description: '', imageUrl: ''),
RPStarChoiceAnswerFormat(choices: []),
RPStarChoice(starActiveUrl: '', starNotActiveUrl: '', description: ''),
RPIntegerAnswerFormat(maxValue: 1, minValue: 1),
RPDoubleAnswerFormat(maxValue: 1, minValue: 1),
RPSliderAnswerFormat(divisions: 1, maxValue: 1, minValue: 1),
RPTextAnswerFormat(),
]);
// Steps classes
FromJsonFactory().registerAll([
RPStep(identifier: '', title: ''),
RPActivityStep(identifier: ''),
RPQuestionStep(identifier: '', title: '', answerFormat: RPAnswerFormat()),
RPInstructionStep(identifier: '', title: ''),
RPTimerStep(identifier: '', timeout: const Duration(), title: ''),
RPFormStep(identifier: '', title: '', questions: []),
RPCompletionStep(identifier: '', title: ''),
]);
// Consent Document classes
FromJsonFactory().registerAll([
RPConsentReviewStep(
identifier: '',
title: '',
consentDocument: RPConsentDocument(sections: [], title: '')),
RPVisualConsentStep(
identifier: '',
consentDocument: RPConsentDocument(sections: [], title: '')),
RPConsentDocument(title: '', sections: []),
RPConsentSection(type: RPConsentSectionType.AboutUs, summary: ''),
RPConsentSignature(identifier: ''),
]);
// Tasks classes
FromJsonFactory().registerAll([
RPOrderedTask(identifier: '', steps: []),
RPNavigableOrderedTask(identifier: '', steps: []),
RPDataTypeSection(
dataName: '',
dataInformation: '',
),
]);
// Navigation rule classes
FromJsonFactory().registerAll([
RPDirectStepNavigationRule(destinationStepIdentifier: ''),
RPStepJumpRule(answerMap: {}),
RPStepReorganizerRule(reorderingMap: {}),
]);
// Result classes
FromJsonFactory().registerAll([
RPResult(identifier: ''),
RPStepResult(
identifier: '', questionTitle: '', answerFormat: RPAnswerFormat()),
RPSignatureResult(),
RPConsentSignatureResult(
identifier: '',
consentDocument: RPConsentDocument(title: '', sections: [])),
RPActivityResult(identifier: ''),
RPNoResult(identifier: ''),
RPTaskResult(identifier: ''),
]);
}