ProtectiveEquipmentSummary.fromJson constructor
ProtectiveEquipmentSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ProtectiveEquipmentSummary.fromJson(Map<String, dynamic> json) {
return ProtectiveEquipmentSummary(
personsIndeterminate: (json['PersonsIndeterminate'] as List?)
?.whereNotNull()
.map((e) => e as int)
.toList(),
personsWithRequiredEquipment:
(json['PersonsWithRequiredEquipment'] as List?)
?.whereNotNull()
.map((e) => e as int)
.toList(),
personsWithoutRequiredEquipment:
(json['PersonsWithoutRequiredEquipment'] as List?)
?.whereNotNull()
.map((e) => e as int)
.toList(),
);
}