toJson method
Implementation
Map<String, dynamic> toJson() {
final data = <String, dynamic>{};
data['interval'] = interval;
data['source_type'] = sourceType;
data['name'] = name;
data['widget_type'] = widgetType;
if (sourceParams != null) {
data['source_params'] = sourceParams;
}
data['source_url'] = sourceUrl;
return data;
}