ProtoGoogleValue class

google.protobuf.Value: a dynamically typed JSON-like value. Canonical JSON mapping is the raw value itself.

Inheritance

Constructors

ProtoGoogleValue({ProtoGoogleNullValue? nullValue, double? numberValue, String? stringValue, bool? boolValue, ProtoGoogleStruct? structValue, ProtoGoogleListValue? listValue})
const
ProtoGoogleValue.deserialize(List<int> bytes)
factory
ProtoGoogleValue.fromDynamic(Object? value)
factory
ProtoGoogleValue.fromDynamicJson(Object? json)
Parses either the field map or the canonical raw-value form.
factory
ProtoGoogleValue.fromJson(Map<String, dynamic> json, {ProtoJsonConfig config = DefaultProtoJsonConfig.defaultConfig})
factory

Properties

boolValue → bool?
final
hashCode → int
The hash code for this object.
no setterinherited
listValue → ProtoGoogleListValue?
final
nullValue → ProtoGoogleNullValue?
final
numberValue → double?
final
protoValues → List<Object?>
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stringValue → String?
final
structValue → ProtoGoogleStruct?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protoConfig() → ProtoMessageConfig
override
toBuffer() → BuBytes
inherited
toDynamic() → Object?
toJson({ProtoJsonConfig config = DefaultProtoJsonConfig.defaultConfig}) → Map<String, dynamic>
override
toJsonValue() → Object?
Canonical JSON is the raw value itself.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

protoConfigStatic() → ProtoMessageConfig