kebabCaseKeys<V> method

Map<String, V> kebabCaseKeys<V>()

Kebab case all keys in the map. Returns a new map with kebab cased keys.

Implementation

Map<String, V> kebabCaseKeys<V>() {
  final map = <String, V>{};
  for (final key in keys) {
    map[key.toString().toKebabCase()] = this[key] as V;
  }
  return map;
}