WaJson class

Provides utility methods for encoding and decoding JSON data.

The WaJson class includes static methods for converting data to JSON format and parsing JSON strings into Dart objects. It handles custom encoding for specific types such as TString, ObjectId, DateTime, and Duration.

Constructors

WaJson.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

encodeMaps(Map obj, {WebRequest? rq}) Map
Convert Symbol maps to String maps
jsonDecoder(String data) → dynamic
Parses a JSON-encoded string into a Dart object.
jsonEncoder(Object data, {WebRequest? rq}) String
Converts an object to a JSON-encoded string.
symbolToKey(Symbol symbol) String
tryJson<T, V>(dynamic data, {WebRequest? rq}) Map<T, V>?
Parses a JSON-encoded dynamic into a Dart object.