StreamDateTimeConverter class

A JsonConverter for the API's DateTime fields.

Responses carry an RFC3339 string (v1) or epoch nanoseconds (v2), so fromJson accepts either; requests are always RFC3339. Precision is microseconds, the finest unit DateTime supports.

Constructors

StreamDateTimeConverter()
const

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

fromJson(Object json) → DateTime
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(DateTime object) → String
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited