statusListFromJson function

List<Status> statusListFromJson(
  1. String str
)

Converts a JSON string into a list of Status objects.

This function decodes the provided JSON string into a list of maps, and then uses the Status.fromJson factory constructor to create each Status object in the list.

str: The JSON string to be decoded.

Returns a list of Status objects.

Implementation

List<Status> statusListFromJson(String str) =>
    List<Status>.from(json.decode(str).map((x) => Status.fromJson(x)));