StoryEmojiComponent.fromJson constructor Null safety

StoryEmojiComponent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StoryEmojiComponent.fromJson(Map<String, dynamic> json) {
  return StoryEmojiComponent(
    type: json['type'],
    id: json['id'],
    customPayload: json['customPayload'],
    selectedEmojiIndex: json['selectedEmojiIndex'],
    emojiCodes: List<String>.from(json['emojiCodes'].map((x) => x)),
  );
}