EmergencyResult.fromJson(Map<String, dynamic> json) { if (json["name"] is String) name = json["name"]; if (json["phone"] is String) phone = json["phone"]; }