PostEvent constructor
const
PostEvent({
- required DateTime start,
- required DateTime end,
- String? timezone,
- @JsonKey.new(name: 'max_attendees', defaultValue: 0) required int maxAttendees,
- @JsonKey.new(name: 'participant_count', defaultValue: 0) required int participantCount,
- @Default.new(false) bool full,
- @JsonKey.new(name: 'online_link') String? onlineLink,
- @JsonKey.new(name: 'join_mode') String? joinMode,
- @JsonKey.new(name: 'external_participation_url') String? externalParticipationUrl,
- @JsonKey.new(name: 'anonymous_participation', defaultValue: false) required bool anonymousParticipation,
- @Default.new(false) bool online,
- @JsonKey.new(name: 'buy_tickets_link') String? buyTicketsLink,
- @JsonKey.new(name: 'event_fee_currency') String? eventFeeCurrency,
- @JsonKey.new(name: 'event_fee_amount') num? eventFeeAmount,
- @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;