availableFeaturesToJson function
Converts an AvailableFeatures object into a JSON string.
This function takes an AvailableFeatures object, converts it into a map
using the toJson
method, and then encodes this map as a JSON string.
Parameters:
data
- The AvailableFeatures object to be converted into a JSON string.
Returns: A JSON string representation of the AvailableFeatures object.
Implementation
String availableFeaturesToJson(AvailableFeatures data) =>
json.encode(data.toJson());