TimestampSerializer class
A class which handles serialization/deserialization of Timestamp objects using the predefined formats specified by TimestampFormat.
Properties
- format → TimestampFormat
-
The format to use for serialization/deserialization.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Iterable<
Type> -
The
Type
s that can be serialized.no setteroverride - wireName → String
-
The wire name of the serializable type. For most classes, the class name.
For primitives and collections a lower-case name is defined as part of
the
built_json
wire format.no setteroverride
Methods
-
deserialize(
Serializers serializers, Object serialized, {FullType specifiedType = FullType.unspecified}) → DateTime -
Deserializes
serialized
.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
Serializers serializers, DateTime object, {FullType specifiedType = FullType.unspecified}) → Object -
Serializes
object
.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- dateTime → const TimestampSerializer
- Date time as defined by the date-time production in RFC3339 section 5.6 with no UTC offset and optional fractional precision (for example, 1985-04-12T23:20:50.52Z).
- epochSeconds → const TimestampSerializer
- Also known as Unix time, the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, with optional fractional precision (for example, 1515531081.1234).
- httpDate → const TimestampSerializer
- An HTTP date as defined by the IMF-fixdate production in RFC 7231#section-7.1.1.1 (for example, Tue, 29 Apr 2014 18:30:38 GMT). Note that in addition to the IMF-fixdate format specified in the RFC, implementations MUST also support optional fractional seconds (for example, Sun, 02 Jan 2000 20:34:56.000 GMT).
- unknown → const TimestampSerializer