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