asIntMap method

Map<String, int> asIntMap()

Implementation

Map<String, int> asIntMap() {
  try {
    final data = this as dynamic;
    if (data == null) return {};
    return ObjectManager().fromBasicMap<int>(
      data ?? {},
    );
  } catch (e) {
    printDebug('Error on getMapOfInt $runtimeType');
    printDebug(e);
    return {};
  }
}