serialize method Null safety
- Serializers serializers,
- Instant object,
- {FullType specifiedType = FullType.unspecified}
override
Serializes object.
Use serializers as needed for nested serialization. Information about
the type being serialized is provided in specifiedType.
Returns a value that can be represented as a JSON primitive: a boolean, an integer, a double, or a String.
TODO(davidmorgan): document the wire format.
Implementation
@override
Object serialize(
Serializers serializers,
Instant object, {
FullType specifiedType = FullType.unspecified,
}) =>
InstantPattern.extendedIso.format(object);