Map<String, dynamic> toJson() { final insightType = this.insightType; return { if (insightType != null) 'InsightType': insightType.toValue(), }; }