HealthAntivirus.fromMap constructor

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

Implementation

factory HealthAntivirus.fromMap(Map<String, dynamic> map) {
  return HealthAntivirus(
    version: map['version'].toString(),
    status: enums.HealthAntivirusStatus.values
        .firstWhere((e) => e.value == map['status']),
  );
}