GetRecommendationsResponse.fromJson constructor
GetRecommendationsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetRecommendationsResponse.fromJson(Map<String, dynamic> json) {
return GetRecommendationsResponse(
anomalies: (json['anomalies'] as List)
.whereNotNull()
.map((e) => Anomaly.fromJson(e as Map<String, dynamic>))
.toList(),
profileEndTime:
nonNullableTimeStampFromJson(json['profileEndTime'] as Object),
profileStartTime:
nonNullableTimeStampFromJson(json['profileStartTime'] as Object),
profilingGroupName: json['profilingGroupName'] as String,
recommendations: (json['recommendations'] as List)
.whereNotNull()
.map((e) => Recommendation.fromJson(e as Map<String, dynamic>))
.toList(),
);
}