SimpleArticle class
Constructors
-
SimpleArticle({int id = 0, String title = "", String link = "", String publishedDate = "", String publishedSince = "", FeatureImage featureImage = const FeatureImage(), int parentCategoryId = 0, String parentCategory = "", int categoryId = 0, String category = "", String issueTitle = "", String issueNumber = "", String volumeNumber = "", String paragraphRawContent = "", String issuePublishedDate = "", bool isPDFArticle = false, String pdfURL = "", List<
String> authors = const []}) -
const
-
SimpleArticle.fromJson(Map<
String, dynamic> json) -
factory
-
SimpleArticle.newInstance(int id, String title, String link, String publishedDate, String publishedSince, FeatureImage featureImage, int parentCategoryId, String parentCategory, int categoryId, String category, String issueTitle, String issueNumber, String volumeNumber, String paragraphRawContent, String issuePublishedDate, bool isPDFArticle, String pdfURL, List<
String> authors) -
factory
- SimpleArticle.pdfArticle(String content, String? link)
-
factory
Properties
-
final
- category → String
-
final
- categoryId → int
-
final
- featureImage → FeatureImage
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → int
-
final
- isPDFArticle → bool
-
final
- issueNumber → String
-
final
- issuePublishedDate → String
-
final
-
final
- issueTitle → String
-
final
- link → String
-
final
- paragraphRawContent → String
-
final
- parentCategory → String
-
final
- parentCategoryId → int
-
final
- pdfURL → String
-
final
- publishedDate → String
-
final
- publishedSince → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
- title → String
-
final
- volumeNumber → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toJsonString(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
toJsonFromList(
List< SimpleArticle> articles) → List -
toJsonStringFromList(
List< SimpleArticle> articles) → String