sortJSONKeysAlphabetically static method
Sorts the keys of the response object alphabetically.
Parameters:
map
: The response object to be sorted.
Returns a Future that completes with a String value of the sorted object.
Implementation
static Future<String> sortJSONKeysAlphabetically(Map map) async {
String string = "";
try {
string = await _hyperSnapSDKChannel
.invokeMethod(HyperSnapSDKConstants.sortJSONKeysAlphabetically, {
"map": map,
});
} catch (e) {
log(e.toString());
}
return string;
}