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