NestedPolicyResponse.fromJson constructor
NestedPolicyResponse.fromJson(
- Map json_
Implementation
NestedPolicyResponse.fromJson(core.Map json_)
: this(
booleanResponse: json_.containsKey('booleanResponse')
? PolicyBooleanResponse.fromJson(
json_['booleanResponse'] as core.Map<core.String, core.dynamic>,
)
: null,
documentResponse: json_.containsKey('documentResponse')
? PolicyDocumentResponse.fromJson(
json_['documentResponse']
as core.Map<core.String, core.dynamic>,
)
: null,
multipleChoiceResponse: json_.containsKey('multipleChoiceResponse')
? PolicyMultipleChoiceResponse.fromJson(
json_['multipleChoiceResponse']
as core.Map<core.String, core.dynamic>,
)
: null,
questionId: json_['questionId'] as core.String?,
singleChoiceResponse: json_.containsKey('singleChoiceResponse')
? PolicySingleChoiceResponse.fromJson(
json_['singleChoiceResponse']
as core.Map<core.String, core.dynamic>,
)
: null,
stringResponse: json_.containsKey('stringResponse')
? PolicyStringResponse.fromJson(
json_['stringResponse'] as core.Map<core.String, core.dynamic>,
)
: null,
);