webLoginToJson function

String webLoginToJson(
  1. List<WebLogin> data
)

Converts a list of WebLogin objects into a JSON string.

This function takes a list of WebLogin objects, converts each object into a map using the toJson method, and then encodes the list of maps as a JSON string.

Parameters: data - The list of WebLogin objects to be converted into a JSON string.

Returns: A JSON string representation of the list of WebLogin objects.

Implementation

String webLoginToJson(List<WebLogin> data) =>
    json.encode(List<dynamic>.from(data.map((x) => x.toJson())));