ProtoGoogleTimestamp class
google.protobuf.Timestamp runtime (see also the generated SuiTimestamp
shape in sui-apis consumers).
Canonical JSON mapping is RFC 3339 (1972-01-01T10:00:20.021Z).
- Inheritance
-
- Object
- IProtoMessage<
ProtoJsonConfig> - ProtoGoogleTimestamp
Constructors
- ProtoGoogleTimestamp({BigInt? seconds, int? nanos})
-
const
-
ProtoGoogleTimestamp.deserialize(List<
int> bytes) -
factory
- ProtoGoogleTimestamp.fromDynamic(Object? json)
-
Parses either the field map or the canonical RFC 3339 string form.
factory
-
ProtoGoogleTimestamp.fromJson(Map<
String, dynamic> json, {ProtoJsonConfig config = DefaultProtoJsonConfig.defaultConfig}) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nanos → int?
-
Non-negative fractions of a second at nanosecond resolution.
final
-
protoValues
→ List<
Object?> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seconds → BigInt?
-
Seconds of UTC time since Unix epoch.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
protoConfig(
) → ProtoMessageConfig -
override
-
toBuffer(
) → BuBytes -
inherited
-
toJson(
{ProtoJsonConfig config = DefaultProtoJsonConfig.defaultConfig}) → Map< String, dynamic> -
override
-
toJsonString(
) → String? - Canonical JSON is the RFC 3339 string form.
-
toRfc3339(
) → String? -
RFC 3339 string (
nullwhen seconds are missing). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRfc3339(
Object? value) → ProtoGoogleTimestamp -
protoConfigStatic(
) → ProtoMessageConfig