DetectorSummary.fromJson constructor
DetectorSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DetectorSummary.fromJson(Map<String, dynamic> json) {
return DetectorSummary(
creationTime: timeStampFromJson(json['creationTime']),
detectorModelName: json['detectorModelName'] as String?,
detectorModelVersion: json['detectorModelVersion'] as String?,
keyValue: json['keyValue'] as String?,
lastUpdateTime: timeStampFromJson(json['lastUpdateTime']),
state: json['state'] != null
? DetectorStateSummary.fromJson(json['state'] as Map<String, dynamic>)
: null,
);
}