toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() => {
  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),
};