toJson method

Map<String, dynamic> toJson()

Convert to json

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'id': id,
    'elements': _elements.map((StoryElement e) => e.toJson()).toList(),
    'colorFiler': _colorFiler,
    'isVideoIncluded': isVideoIncluded,
    'videoDuration': _videoDuration,
    'paletteColors': _paletteColors.map((Color e) => e.value).toList(),
  };
}