Featurestore.fromJson constructor
Featurestore.fromJson(
- Object? j
Implementation
factory Featurestore.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Featurestore(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
createTime: switch (json['createTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
updateTime: switch (json['updateTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
etag: switch (json['etag']) {
null => '',
Object $1 => decodeString($1),
},
labels: switch (json['labels']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): decodeString(e.value),
},
_ => throw const FormatException('"labels" is not an object'),
},
onlineServingConfig: switch (json['onlineServingConfig']) {
null => null,
Object $1 => Featurestore_OnlineServingConfig.fromJson($1),
},
state: switch (json['state']) {
null => Featurestore_State.$default,
Object $1 => Featurestore_State.fromJson($1),
},
onlineStorageTtlDays: switch (json['onlineStorageTtlDays']) {
null => 0,
Object $1 => decodeInt($1),
},
encryptionSpec: switch (json['encryptionSpec']) {
null => null,
Object $1 => EncryptionSpec.fromJson($1),
},
satisfiesPzs: switch (json['satisfiesPzs']) {
null => false,
Object $1 => decodeBool($1),
},
satisfiesPzi: switch (json['satisfiesPzi']) {
null => false,
Object $1 => decodeBool($1),
},
);
}