convertMapTo<T> static method

Map<String, T> convertMapTo<T>(
  1. Map<String, dynamic> inMap
)

Implementation

static Map<String, T> convertMapTo<T>(Map<String, dynamic> inMap) {
  Map<String, T> m = {};
  for (var entry in inMap.entries) {
    m[entry.key] = entry.value as T;
  }
  return m;
}