SuggestedPostInfo constructor
const
SuggestedPostInfo({
- @JsonKey.new(name: 'state') required String state,
- @JsonKey.new(name: 'price') SuggestedPostPrice? price,
- @JsonKey.new(name: 'send_date') int? sendDate,
Creates a new SuggestedPostInfo object.
Implementation
const factory SuggestedPostInfo({
/// State of the suggested post. Currently, it can be one of "pending", "approved", "declined".
@JsonKey(name: 'state') required String state,
/// Optional. Proposed price of the post. If the field is omitted, then the post is unpaid.
@JsonKey(name: 'price') SuggestedPostPrice? price,
/// Optional. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.
@JsonKey(name: 'send_date') int? sendDate,
}) = _SuggestedPostInfo;