dataFromJson function

LoginData dataFromJson(
  1. String str
)

user_id : "24" parent_id : "20" company_id : "19" master_user_id : "18" user_type : "sales" name : "Akash Dobariya" name_small : "A" name_small_2 : "AK" email_address : "akash@pharmahub.com" country_code : "91" contact_no : "91 9879879789" website_url : "" company_address : "" discount_as_per : "0" show_quantity_indicator : "1" discount_as_per_fixed : "" discout_as_per_product_vise : "1" return_max_day : "" expiry_return : "0" country_id : "101" country : "India" state_id : "12" state : "Gujarat" city_id : "905" city : "Jamnagar" company_logo : "" company_logo_full : "" drug_license_no : "" drug_license_photo : "" drug_license_photo_full : "" drug_license_pdf : "" drug_license_pdf_full : "" drug_license_photo_0_or_pdf_1 : "" gst_no : "" gst_photo : "" gst_photo_full : "" gst_pdf : "" gst_pdf_full : "" gst_photo_0_or_pdf_1 : "0" pan_card_no : "" pan_card_photo : "" pan_card_photo_full : "" pan_card_pdf : "" pan_card_pdf_full : "" pan_card_photo_0_or_pdf_1 : "0" order_gst_type_id : "" created_at_date_time : {"date":"01 May, 2024","time":"12:55 PM"} updated_at_date_time : {"date":"23 Jun, 2024","time":"01:56 PM"} is_active : "1" address : "address" drug_license_array : {"license_id":"25","name":"License 20B","license_no":"DAD897F89D89F9NBKJ"} retailer_ids_array_map : {"id":"21","name":"Natraj Medical","email_address":"info@natrajmedical.com","contact_no":"91 9789584375"}

Implementation

LoginData dataFromJson(String str) => LoginData.fromJson(json.decode(str));