ApiPost constructor

ApiPost({
  1. String? idx,
  2. String? rootIdx,
  3. String? parentIdx,
  4. String? relationIdx,
  5. String? userIdx,
  6. ApiShortUser? user,
  7. String? categoryIdx,
  8. String? subcategory,
  9. String? path,
  10. String? content,
  11. List<ApiFile>? files,
  12. String? createdAt,
  13. String? updatedAt,
  14. String? deletedAt,
  15. String? private,
  16. String? privateTitle,
  17. String? privateContent,
  18. String? y,
  19. String? n,
  20. dynamic data,
  21. String? title,
  22. String? categoryId,
  23. List<ApiComment>? comments,
  24. String? appliedPoint,
  25. String? code,
  26. String? shortTitle,
  27. int? price,
  28. bool? optionItemPrice,
  29. int? discountRate,
  30. bool? pause,
  31. int? point,
  32. String? volume,
  33. int? deliveryFee,
  34. String? storageMethod,
  35. String? expiry,
  36. String? foodKind,
  37. String? origin,
  38. String? allergy,
  39. String? nutritiveComponents,
  40. String? primaryPhoto,
  41. String? widgetPhoto,
  42. String? detailPhoto,
  43. String? bannerPhoto,
  44. String? keywords,
  45. Map<String, ApiItemOption>? options,
  46. 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 = [];
}