toJson method
Implementation
@override
Object toJson() {
return {
if (scalar != null) 'scalar': scalar!.toJson(),
if (tensor != null) 'tensor': tensor!.toJson(),
if (blobs != null) 'blobs': blobs!.toJson(),
if (wallTime != null) 'wallTime': wallTime!.toJson(),
if (step.isNotDefault) 'step': encodeInt64(step),
};
}