Story constructor

const Story({
  1. @JsonKey(name: 'chat') required Chat chat,
  2. @JsonKey(name: 'id') required int id,
})

Constructs an instance of Story.

Implementation

const factory Story({
  /// Chat that posted the story
  @JsonKey(name: 'chat') required Chat chat,

  /// Unique identifier for the story in the chat
  @JsonKey(name: 'id') required int id,
}) = _Story;