DateRangeBucket

fun <T> DateRangeBucket(    key: String,     docCount: Long,     from: Double? = null,     fromAsString: String? = null,     fromAsDatetime: T? = null,     to: Double? = null,     toAsString: String? = null,     toAsDatetime: T? = null,     aggs: Map<String, AggregationResult> = emptyMap())