StoryPromocodeComponent.fromJson constructor

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

Implementation

factory StoryPromocodeComponent.fromJson(Map<String, dynamic> json) {
  return StoryPromocodeComponent(
    type: json['type'],
    id: json['id'],
    text: json['text'],
  );
}