fromJson method Null safety

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

Deserializes the result from JSON.

Implementation

static Health fromJson(Map<String, dynamic> json) {
  return Health(_healthStatusIndex.lookupBySimpleName(json['status'] as String));
}