Status.fromJson constructor

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

Creates a new instance of Status from a JSON object.

The JSON object should contain keys that correspond to the parameters of Status.

Implementation

factory Status.fromJson(Map<String, dynamic> json) {
  return Status(
    response: json['response'],
    time: json['time'],
  );
}