ProjectComponent.fromJson constructor
Implementation
factory ProjectComponent.fromJson(Map<String, Object?> json) {
return ProjectComponent(
assignee: json[r'assignee'] != null
? User.fromJson(json[r'assignee']! as Map<String, Object?>)
: null,
assigneeType: json[r'assigneeType'] != null
? ProjectComponentAssigneeType.fromValue(
json[r'assigneeType']! as String)
: null,
description: json[r'description'] as String?,
id: json[r'id'] as String?,
isAssigneeTypeValid: json[r'isAssigneeTypeValid'] as bool? ?? false,
lead: json[r'lead'] != null
? User.fromJson(json[r'lead']! as Map<String, Object?>)
: null,
leadAccountId: json[r'leadAccountId'] as String?,
leadUserName: json[r'leadUserName'] as String?,
name: json[r'name'] as String?,
project: json[r'project'] as String?,
projectId: (json[r'projectId'] as num?)?.toInt(),
realAssignee: json[r'realAssignee'] != null
? User.fromJson(json[r'realAssignee']! as Map<String, Object?>)
: null,
realAssigneeType: json[r'realAssigneeType'] != null
? ProjectComponentRealAssigneeType.fromValue(
json[r'realAssigneeType']! as String)
: null,
self: json[r'self'] as String?,
);
}