taskFromJson function

Task taskFromJson(
  1. String str
)

id : "1" task : "New Task for @Bhoomi" schedule_type : "" schedule_time : "" next_occurance_time : "" parent_task_id : "" is_primary_task : "1" priority : "1" due_date : "Friday, 25 October, 2024" status : "Pending" timestamp : "Monday, 21 October, 2024" description : "This handy tool helps you create dummy text for all your layout needs. We are gradually adding new functionality and we welcome your suggestions and feedback." is_pinned : "1" from_user_id : "262" over_due : "27" priority_text : "Low" attachments : {"id":"1","file_type":"png","file_name":"https://www.reecosys.com/api/assets/uploads/2024/11/logo-1-1-1731413224.png","created_at":"Tuesday, 12 November, 2024 05:37 pm"} comments : {"id":"12","message":"Please check this task @HeliValand @DipikaSuthar","status":"","created_at":"Thursday, 21 November, 2024 12:27 pm"} members : {"master_user_id":"268","name":"Bhoomi"},{"master_user_id":"270","name":"Hemil"},{"master_user_id":"272","name":"Lalit"} assigned_members : "268,270" observer_members : "272"

Implementation

Task taskFromJson(String str) => Task.fromJson(json.decode(str));