getSetsFromJson function

List<String> getSetsFromJson(
  1. Map<String, dynamic> input
)

Finds the order of the token sets in the input json

Implementation

List<String> getSetsFromJson(Map<String, dynamic> input) {
  return (input['\$metadata']?['tokenSetOrder'] as List? ?? [])
      .map((e) => e.toString())
      .toList();
}