DetectProtectiveEquipmentResponse.fromJson constructor
DetectProtectiveEquipmentResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DetectProtectiveEquipmentResponse.fromJson(
Map<String, dynamic> json) {
return DetectProtectiveEquipmentResponse(
persons: (json['Persons'] as List?)
?.whereNotNull()
.map((e) =>
ProtectiveEquipmentPerson.fromJson(e as Map<String, dynamic>))
.toList(),
protectiveEquipmentModelVersion:
json['ProtectiveEquipmentModelVersion'] as String?,
summary: json['Summary'] != null
? ProtectiveEquipmentSummary.fromJson(
json['Summary'] as Map<String, dynamic>)
: null,
);
}