JiraExpressionEvalContextBean.fromJson constructor
Implementation
factory JiraExpressionEvalContextBean.fromJson(Map<String, Object?> json) {
return JiraExpressionEvalContextBean(
board: (json[r'board'] as num?)?.toInt(),
custom: (json[r'custom'] as List<Object?>?)
?.map((i) => CustomContextVariable.fromJson(
i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
customerRequest: (json[r'customerRequest'] as num?)?.toInt(),
issue: json[r'issue'] != null
? IdOrKeyBean.fromJson(json[r'issue']! as Map<String, Object?>)
: null,
issues: json[r'issues'] != null
? JexpIssues.fromJson(json[r'issues']! as Map<String, Object?>)
: null,
project: json[r'project'] != null
? IdOrKeyBean.fromJson(json[r'project']! as Map<String, Object?>)
: null,
serviceDesk: (json[r'serviceDesk'] as num?)?.toInt(),
sprint: (json[r'sprint'] as num?)?.toInt(),
);
}