FeatureGroup.fromJson constructor
FeatureGroup.fromJson(
- Object? j
Implementation
factory FeatureGroup.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FeatureGroup(
bigQuery: switch (json['bigQuery']) {
null => null,
Object $1 => FeatureGroup_BigQuery.fromJson($1),
},
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'),
},
description: switch (json['description']) {
null => '',
Object $1 => decodeString($1),
},
serviceAgentType: switch (json['serviceAgentType']) {
null => FeatureGroup_ServiceAgentType.$default,
Object $1 => FeatureGroup_ServiceAgentType.fromJson($1),
},
serviceAccountEmail: switch (json['serviceAccountEmail']) {
null => '',
Object $1 => decodeString($1),
},
);
}