toJson method

String toJson()

Converts the block number or tag to its JSON representation.

Implementation

String toJson() {
  return _tag?.value ?? _toRadix16Number!;
}