StatusData.fromJson constructor

StatusData.fromJson(
  1. Map<String, dynamic> json
)

Creates a StatusData instance from a JSON map.

This factory constructor is used to create an instance of StatusData from a map structure representing JSON data. This is useful for deserializing JSON data retrieved from a database or an API.

Parameters: json - A map representing JSON data.

Returns: An instance of StatusData.

Implementation

factory StatusData.fromJson(Map<String, dynamic> json) => StatusData(
      id: json["id"].toString(),
      isCurrentStatus: json["isCurrentStatus"],
      status: json["status"],
    );