ApiPost constructor
ApiPost({
- String? idx,
- String? rootIdx,
- String? parentIdx,
- String? relationIdx,
- String? userIdx,
- ApiShortUser? user,
- String? categoryIdx,
- String? subcategory,
- String? path,
- String? content,
- List<
ApiFile> ? files, - String? createdAt,
- String? updatedAt,
- String? deletedAt,
- String? private,
- String? privateTitle,
- String? privateContent,
- String? y,
- String? n,
- dynamic data,
- String? title,
- String? categoryId,
- List<
ApiComment> ? comments, - String? appliedPoint,
- String? code,
- String? shortTitle,
- int? price,
- bool? optionItemPrice,
- int? discountRate,
- bool? pause,
- int? point,
- String? volume,
- int? deliveryFee,
- String? storageMethod,
- String? expiry,
- String? foodKind,
- String? origin,
- String? allergy,
- String? nutritiveComponents,
- String? primaryPhoto,
- String? widgetPhoto,
- String? detailPhoto,
- String? bannerPhoto,
- String? keywords,
- Map<
String, ApiItemOption> ? options, - String? shortDateTime,
Implementation
ApiPost({
this.idx,
this.rootIdx,
this.parentIdx,
this.relationIdx,
this.userIdx,
this.user,
this.categoryIdx,
this.subcategory,
this.path,
this.content,
this.files,
this.createdAt,
this.updatedAt,
this.deletedAt,
this.private,
this.privateTitle,
this.privateContent,
this.y,
this.n,
//
this.data,
this.title,
this.categoryId,
this.comments,
//
this.appliedPoint,
this.code,
// Shopping mall props
this.shortTitle,
this.price,
this.optionItemPrice,
this.discountRate,
this.pause,
this.point,
this.volume,
this.deliveryFee,
this.storageMethod,
this.expiry,
this.foodKind,
this.origin,
this.allergy,
this.nutritiveComponents,
this.primaryPhoto,
this.widgetPhoto,
this.detailPhoto,
this.bannerPhoto,
this.keywords,
this.options,
this.shortDateTime,
}) {
if (title == null) title = '';
if (comments == null) comments = [];
if (content == null) content = '';
if (files == null) files = [];
}