JsonSorter class

A utility class that provides methods for sorting JSON data.

Constructors

JsonSorter.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

keyComparator(String a, String b, List<String> prioritized) int
Compares two keys a and b based on the prioritized list.
sortJson(dynamic input, {List<String> prioritized = const []}) → dynamic
Recursively sorts a JSON structure (which can be a Map or List) according to the prioritized keys.