TaskUpdateRequest.fromJson constructor
Implementation
factory TaskUpdateRequest.fromJson(Map<String, Object?> json) {
return TaskUpdateRequest(
id: json[r'id'] as String?,
localId: json[r'localId'] as String?,
spaceId: json[r'spaceId'] as String?,
pageId: json[r'pageId'] as String?,
blogPostId: json[r'blogPostId'] as String?,
status:
TaskUpdateRequestStatus.fromValue(json[r'status'] as String? ?? ''),
createdBy: json[r'createdBy'] as String?,
assignedTo: json[r'assignedTo'] as String?,
completedBy: json[r'completedBy'] as String?,
createdAt: DateTime.tryParse(json[r'createdAt'] as String? ?? ''),
updatedAt: DateTime.tryParse(json[r'updatedAt'] as String? ?? ''),
dueAt: DateTime.tryParse(json[r'dueAt'] as String? ?? ''),
completedAt: DateTime.tryParse(json[r'completedAt'] as String? ?? ''),
);
}