Status.fromJson constructor

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

Creates a Status object from a JSON map.

Implementation

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