PostEvent constructor

const PostEvent({
  1. required DateTime start,
  2. required DateTime end,
  3. String? timezone,
  4. @JsonKey.new(name: 'max_attendees', defaultValue: 0) required int maxAttendees,
  5. @JsonKey.new(name: 'participant_count', defaultValue: 0) required int participantCount,
  6. @Default.new(false) bool full,
  7. @JsonKey.new(name: 'online_link') String? onlineLink,
  8. @JsonKey.new(name: 'join_mode') String? joinMode,
  9. @JsonKey.new(name: 'external_participation_url') String? externalParticipationUrl,
  10. @JsonKey.new(name: 'anonymous_participation', defaultValue: false) required bool anonymousParticipation,
  11. @Default.new(false) bool online,
  12. @JsonKey.new(name: 'buy_tickets_link') String? buyTicketsLink,
  13. @JsonKey.new(name: 'event_fee_currency') String? eventFeeCurrency,
  14. @JsonKey.new(name: 'event_fee_amount') num? eventFeeAmount,
  15. @JsonKey.new(name: 'my_participation') String? myParticipation,
})

Implementation

const factory PostEvent({
  required DateTime start,
  required DateTime end,
  String? timezone,
  @JsonKey(name: 'max_attendees', defaultValue: 0) required int maxAttendees,
  @JsonKey(name: 'participant_count', defaultValue: 0) required int participantCount,
  @Default(false) bool full,
  @JsonKey(name: 'online_link') String? onlineLink,
  @JsonKey(name: 'join_mode') String? joinMode,
  @JsonKey(name: 'external_participation_url') String? externalParticipationUrl,
  @JsonKey(name: 'anonymous_participation', defaultValue: false) required bool anonymousParticipation,
  @Default(false) bool online,
  @JsonKey(name: 'buy_tickets_link') String? buyTicketsLink,
  @JsonKey(name: 'event_fee_currency') String? eventFeeCurrency,
  @JsonKey(name: 'event_fee_amount') num? eventFeeAmount,
  @JsonKey(name: 'my_participation') String? myParticipation,
}) = _PostEvent;