mapListFromJson static method

Map<String, List<ChannelInfo?>?> mapListFromJson(
  1. dynamic json, {
  2. bool? emptyIsNull,
  3. bool? growable,
})

Implementation

static Map<String, List<ChannelInfo?>?> mapListFromJson(dynamic json, {bool? emptyIsNull, bool? growable,}) {
  final Map<String, List<ChannelInfo?>?> map = <String, List<ChannelInfo>?>{};
  if (json is Map && json.isNotEmpty) {
    json
      .cast<String, dynamic>()
      .forEach((key, dynamic value) {
        map[key] = ChannelInfo.listFromJson(
          value,
          emptyIsNull: emptyIsNull,
          growable: growable,
        );
      });
  }
  return map;
}