GetDetectorResponse.fromJson constructor
GetDetectorResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetDetectorResponse.fromJson(Map<String, dynamic> json) {
return GetDetectorResponse(
serviceRole: json['serviceRole'] as String,
status: (json['status'] as String).toDetectorStatus(),
createdAt: json['createdAt'] as String?,
dataSources: json['dataSources'] != null
? DataSourceConfigurationsResult.fromJson(
json['dataSources'] as Map<String, dynamic>)
: null,
findingPublishingFrequency:
(json['findingPublishingFrequency'] as String?)
?.toFindingPublishingFrequency(),
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
updatedAt: json['updatedAt'] as String?,
);
}