userListFromJson function

UserList userListFromJson(
  1. String str
)

Converts a JSON string into a UserList object.

This function decodes the given JSON string and uses the fromJson constructor of the UserList class to create an instance.

Parameters: str - A JSON string representation of a UserList object.

Returns: An instance of UserList populated with data from the given JSON string.

Implementation

UserList userListFromJson(String str) => UserList.fromJson(json.decode(str));