ContextualInsights.fromJson constructor

ContextualInsights.fromJson(
  1. Map<String, dynamic> jsonDecode
)

Implementation

ContextualInsights.fromJson(Map<String, dynamic> jsonDecode) {
  weatherImpact = jsonDecode['weatherImpact'];
  trafficConditions = jsonDecode['trafficConditions'];
  timeOfDay = jsonDecode['timeOfDay'];
  routeFamiliarity = jsonDecode['routeFamiliarity'];
}