JsonUtil class
Utility class for JSON parsing and data type conversions.
Provides helper methods for deserializing lists and parsing date strings in various formats commonly used by the Tawakkalna API.
Constructors
- JsonUtil()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
deserializeList<
T> (List json, T fromValue(int)) → Iterable< T> ? - Deserializes a JSON list into a typed iterable.
-
parseDateTime(
String? dateString) → DateTime? - Parses a date string into a DateTime object.