GetHealthResponse.fromJson constructor

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

Implementation

factory GetHealthResponse.fromJson(Map<String, dynamic> json) {
  GetHealthResponse response = GetHealthResponse(json);
  if (json['result'] != null) {
    response.status = json['result']['status'];
  } else if (json['error'] != null) {
    response.error = SorobanRpcErrorResponse.fromJson(json);
  }
  return response;
}