Assignment.fromJson constructor
Assignment.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Assignment.fromJson(Map<String, dynamic> json) {
return Assignment(
acceptTime: timeStampFromJson(json['AcceptTime']),
answer: json['Answer'] as String?,
approvalTime: timeStampFromJson(json['ApprovalTime']),
assignmentId: json['AssignmentId'] as String?,
assignmentStatus:
(json['AssignmentStatus'] as String?)?.toAssignmentStatus(),
autoApprovalTime: timeStampFromJson(json['AutoApprovalTime']),
deadline: timeStampFromJson(json['Deadline']),
hITId: json['HITId'] as String?,
rejectionTime: timeStampFromJson(json['RejectionTime']),
requesterFeedback: json['RequesterFeedback'] as String?,
submitTime: timeStampFromJson(json['SubmitTime']),
workerId: json['WorkerId'] as String?,
);
}