GoogleCloudAiplatformV1Tensor.fromJson constructor
GoogleCloudAiplatformV1Tensor.fromJson(
- Map json_
Implementation
GoogleCloudAiplatformV1Tensor.fromJson(core.Map json_)
: this(
boolVal: json_.containsKey('boolVal')
? (json_['boolVal'] as core.List)
.map((value) => value as core.bool)
.toList()
: null,
bytesVal: json_.containsKey('bytesVal')
? (json_['bytesVal'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
doubleVal: json_.containsKey('doubleVal')
? (json_['doubleVal'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
dtype:
json_.containsKey('dtype') ? json_['dtype'] as core.String : null,
floatVal: json_.containsKey('floatVal')
? (json_['floatVal'] as core.List)
.map((value) => (value as core.num).toDouble())
.toList()
: null,
int64Val: json_.containsKey('int64Val')
? (json_['int64Val'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
intVal: json_.containsKey('intVal')
? (json_['intVal'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
listVal: json_.containsKey('listVal')
? (json_['listVal'] as core.List)
.map((value) => GoogleCloudAiplatformV1Tensor.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shape: json_.containsKey('shape')
? (json_['shape'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
stringVal: json_.containsKey('stringVal')
? (json_['stringVal'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
structVal: json_.containsKey('structVal')
? (json_['structVal'] as core.Map<core.String, core.dynamic>).map(
(key, value) => core.MapEntry(
key,
GoogleCloudAiplatformV1Tensor.fromJson(
value as core.Map<core.String, core.dynamic>),
),
)
: null,
tensorVal: json_.containsKey('tensorVal')
? json_['tensorVal'] as core.String
: null,
uint64Val: json_.containsKey('uint64Val')
? (json_['uint64Val'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
uintVal: json_.containsKey('uintVal')
? (json_['uintVal'] as core.List)
.map((value) => value as core.int)
.toList()
: null,
);