HealthStatus.fromMap constructor

HealthStatus.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory HealthStatus.fromMap(Map<String, dynamic> map) {
  return HealthStatus(
    name: map['name'].toString(),
    ping: map['ping'],
    status: map['status'].toString(),
  );
}