HealthResponse.fromJson constructor

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

Implementation

factory HealthResponse.fromJson(Map<String, dynamic> json) {
  return HealthResponse(
    error: json['error'] as String?,
    status: json['status'] as String,
  );
}