Json class

An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.

Available extensions
Annotations
  • @JS('JSON')
  • @staticInterop
  • @anonymous

Constructors

Json({dynamic parse(String, [dynamic (String, [dynamic])?])?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
parse ↔ dynamic Function(String, [dynamic (String, [dynamic])?])

Available on Json, provided by the Json$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify → ({String Function([dynamic value, dynamic replacer(String, [dynamic])?, Object? space]) $1, String Function([dynamic value, List<Object>? replacer, Object? space]) $2})

Available on Json, provided by the Json$Typings extension

Overload accessor: $1, $2
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited