snakeCaseKeys<V> method

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

Snake case all keys in the map. Returns a new map with snake cased keys.

Implementation

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