mapFromJson static method

Map<String, StrategyAttributePlatformName> mapFromJson(
  1. Map<String, dynamic>? json
)

Implementation

static Map<String, StrategyAttributePlatformName> mapFromJson(
    Map<String, dynamic>? json) {
  final map = <String, StrategyAttributePlatformName>{};
  if (json != null && json.isNotEmpty) {
    json.forEach((String key, dynamic value) {
      final val = fromJson(value);
      if (val != null) {
        map[key] = val;
      }
    });
  }
  return map;
}