Tensorboard.fromJson constructor

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

Implementation

factory Tensorboard.fromJson(Map<String, dynamic> json) {
  return Tensorboard(
    name: json['name'] ?? '',
    displayName: json['displayName'] ?? '',
    description: json['description'] ?? '',
    encryptionSpec: decode(json['encryptionSpec'], EncryptionSpec.fromJson),
    blobStoragePathPrefix: json['blobStoragePathPrefix'] ?? '',
    runCount: json['runCount'] ?? 0,
    createTime: decodeCustom(json['createTime'], protobuf.Timestamp.fromJson),
    updateTime: decodeCustom(json['updateTime'], protobuf.Timestamp.fromJson),
    labels: decodeMap(json['labels']) ?? {},
    etag: json['etag'] ?? '',
    isDefault: json['isDefault'] ?? false,
    satisfiesPzs: json['satisfiesPzs'] ?? false,
    satisfiesPzi: json['satisfiesPzi'] ?? false,
  );
}