NewsModel class

Constructors

NewsModel({int id = -1, int article_catalogue_id = -1, String title = '', String image = '', String content = '', String article_catalogue_name = '', String created_at = ''})

Properties

article_catalogue_id int
getter/setter pair
article_catalogue_name String
getter/setter pair
content String
getter/setter pair
created_at String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
getter/setter pair
image String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
getter/setter pair

Methods

fromJson(Map<String, dynamic> json) NewsModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited