TimeSeriesDataPoint.fromJson constructor
TimeSeriesDataPoint.fromJson(
- Object? j
Implementation
factory TimeSeriesDataPoint.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return TimeSeriesDataPoint(
scalar: switch (json['scalar']) {
null => null,
Object $1 => Scalar.fromJson($1),
},
tensor: switch (json['tensor']) {
null => null,
Object $1 => TensorboardTensor.fromJson($1),
},
blobs: switch (json['blobs']) {
null => null,
Object $1 => TensorboardBlobSequence.fromJson($1),
},
wallTime: switch (json['wallTime']) {
null => null,
Object $1 => protobuf.Timestamp.fromJson($1),
},
step: switch (json['step']) {
null => 0,
Object $1 => decodeInt64($1),
},
);
}