mapInt static method

Map<String, int>? mapInt(
  1. Map<String, Object?> map,
  2. String key
)

Implementation

static Map<String, int>? mapInt(
  Map<String, Object?> map,
  String key,
) {
  return (map[key] as Map<String, Object?>?)
      ?.map((key, value) => MapEntry(key, value! as int));
}