imagePackUsageFromJson function

List<ImagePackUsage>? imagePackUsageFromJson(
  1. List<String>? json
)

Implementation

List<ImagePackUsage>? imagePackUsageFromJson(List<String>? json) => json
    ?.map((v) => {
          'sticker': ImagePackUsage.sticker,
          'emoticon': ImagePackUsage.emoticon,
        }[v])
    .whereType<ImagePackUsage>()
    .toList();