ReadTensorboardBlobDataRequest.fromJson constructor
ReadTensorboardBlobDataRequest.fromJson(
- Object? j
Implementation
factory ReadTensorboardBlobDataRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ReadTensorboardBlobDataRequest(
timeSeries: switch (json['timeSeries']) {
null => '',
Object $1 => decodeString($1),
},
blobIds: switch (json['blobIds']) {
null => [],
List<Object?> $1 => [for (final i in $1) decodeString(i)],
_ => throw const FormatException('"blobIds" is not a list'),
},
);
}