Assigning Timestamp or Datetime String to DateTime Datatype in Custom DataType Object

Database & APIs

Hi There,

Good Day,

From an API call i am getting a list of objects as JSON, i have created a custom datatype for the same in flutterflow. My JSON file has few Timestamp and LatLng columns with values ex: "2024-11-22 03:43:01.937000+00:00" and LatLng(lat: 87.3806535, lng: 68.5601587).

These are coming in string format from JSON, and when i am assigning
API Response JSON Body -> To DataType -> MyCustomDataType.

The Timestamp and LatLng columns are going as string DataType, I would rather want to store them as their specific DataType.

Any Suggestions/Workarounds to achieve this?


Thanks in advance for your time and effort spent on this issue.

What have you tried so far?

I have tried passing all different types of DateTime/Timestamps into JSON and checked if flutterflow could automatically pick any of them as DateTime instead of string. But no Luck.

In the Image i have provided as an example, for RecordAddedDate if i set it to DateTime then JSON is not getting assigned to CustomDataType

Did you check FlutterFlow's Documentation for this topic?
Yes
1