statusFromJson function
Converts a JSON string into a Status object.
This function decodes the provided JSON string into a map, and then uses the Status.fromJson factory constructor to create a Status object.
str
: The JSON string to be decoded.
Returns a Status object.
Implementation
Status statusFromJson(String str) => Status.fromJson(json.decode(str));