camelCaseKeys<V> method

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

Camel case all keys in the map. Returns a new map with camel cased keys.

Implementation

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