toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  switch (this) {
    case array:
      return 'array';
    case boolean:
      return 'boolean';
    case integer:
      return 'integer';
    case number:
      return 'number';
    case nullValue:
      return 'null';
    case object:
      return 'object';
    case string:
      return 'string';
  }
  return null;
}