webLoginFromJson function

List<WebLogin> webLoginFromJson(
  1. String str
)

Converts a JSON string into a list of WebLogin objects.

This function decodes the given JSON string and maps each JSON object to a WebLogin instance using the WebLogin.fromJson constructor.

Parameters: str - A JSON string representation of a list of WebLogin objects.

Returns: A list of WebLogin instances populated with data from the given JSON string.

Implementation

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