toJson method

Map<String, dynamic> toJson()

Implementation

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