FeatureGroup.fromJson constructor

FeatureGroup.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory FeatureGroup.fromJson(Map<String, dynamic> json) {
  return FeatureGroup(
    bigQuery: decode(json['bigQuery'], FeatureGroup_BigQuery.fromJson),
    name: json['name'] ?? '',
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    etag: json['etag'] ?? '',
    labels: decodeMap(json['labels']) ?? {},
    description: json['description'] ?? '',
    serviceAgentType:
        decodeEnum(
          json['serviceAgentType'],
          FeatureGroup_ServiceAgentType.fromJson,
        ) ??
        FeatureGroup_ServiceAgentType.$default,
    serviceAccountEmail: json['serviceAccountEmail'] ?? '',
  );
}