StoryArea constructor

const StoryArea({
  1. @JsonKey.new(name: 'position') required StoryAreaPosition position,
  2. @JsonKey.new(name: 'type') required StoryAreaType type,
})

Creates a new StoryArea object.

Implementation

const factory StoryArea({
  /// Position of the area
  @JsonKey(name: 'position') required StoryAreaPosition position,

  /// Type of the area
  @JsonKey(name: 'type') required StoryAreaType type,
}) = _StoryArea;