Map<String, dynamic> toMap() { return <String, dynamic>{ 'metricCosts': metricCosts, 'selector': selector, }; }