ProgramRuleAction.fromJson constructor
ProgramRuleAction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProgramRuleAction.fromJson(Map<String, dynamic> json) {
return ProgramRuleAction(
id: json['id'],
name: json['name'] ?? json['id'],
description: json['description'],
content: json['content'],
displayContent: json['displayContent'],
programRuleActionType: json['programRuleActionType'],
programRule: json['programRule'],
dataElement: json['dataElement'] != null
? json['dataElement'] is String
? json['dataElement']
: json['dataElement']['id']
: null,
option: json['option'] != null
? json['option'] is String
? json['option']
: json['option']['id']
: null,
section: json['section'] != null
? json['section'] is String
? json['section']
: json['section']['id']
: null,
optionGroup: json['optionGroup'] != null
? json['optionGroup'] is String
? json['optionGroup']
: json['optionGroup']['id']
: null,
trackedEntityAttribute: json['trackedEntityAttribute'] != null
? json['trackedEntityAttribute'] is String
? json['trackedEntityAttribute']
: json['trackedEntityAttribute']['id']
: null,
evaluationTime: json['evaluationTime'],
dirty: json['dirty'],
data: json['data']);
}