fromMap static method

HealthStatus fromMap(
  1. Map map
)

Implementation

static HealthStatus fromMap(Map<dynamic, dynamic> map) {
  int id = map["id"];
  String name = map["name"];
  return HealthStatus.valueFromName(name);
}