Item.fromJson constructor
Item.fromJson(
- Map json_
Implementation
Item.fromJson(core.Map json_)
: this(
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
imageItem: json_.containsKey('imageItem')
? ImageItem.fromJson(
json_['imageItem'] as core.Map<core.String, core.dynamic>)
: null,
itemId: json_.containsKey('itemId')
? json_['itemId'] as core.String
: null,
pageBreakItem: json_.containsKey('pageBreakItem')
? PageBreakItem.fromJson(
json_['pageBreakItem'] as core.Map<core.String, core.dynamic>)
: null,
questionGroupItem: json_.containsKey('questionGroupItem')
? QuestionGroupItem.fromJson(json_['questionGroupItem']
as core.Map<core.String, core.dynamic>)
: null,
questionItem: json_.containsKey('questionItem')
? QuestionItem.fromJson(
json_['questionItem'] as core.Map<core.String, core.dynamic>)
: null,
textItem: json_.containsKey('textItem')
? TextItem.fromJson(
json_['textItem'] as core.Map<core.String, core.dynamic>)
: null,
title:
json_.containsKey('title') ? json_['title'] as core.String : null,
videoItem: json_.containsKey('videoItem')
? VideoItem.fromJson(
json_['videoItem'] as core.Map<core.String, core.dynamic>)
: null,
);