ResponseStatus.fromJson constructor

ResponseStatus.fromJson(
  1. dynamic json
)

Factory method to create a ResponseStatus from a JSON json object.

Implementation

factory ResponseStatus.fromJson(dynamic json) {
  return ResponseStatus(
    json['status'] as String,
    json['message'] as String,
    json['data'] as String?,
  );
}