EventListData class

  • If you add variable in EventListData model, You also have to add that variable in EventListDataObservable model,
  • After that in appstore addEventData function for new item
  • also in compareEvents() function for comparison. If the variable is List of object then use compareLists() function in compareEvents(), to compare the object
  • Also add new value/variable in hashCode and operator == of that model

Constructors

EventListData({int? id, int? userId, String? name, String? eventImage, DateTime? startDate, DateTime? endDate, String? startTime, String? endTime, int? bookingLimit, int? leftBookingCount, int? price, dynamic discount, dynamic discountType, String? address, String? city, String? latitude, String? longitude, dynamic postalCode, String? status, int? isFeatured, String? statusText, int? isFavourite, int? totalRating, List<int>? musicTypeId, List<MusicAffinityModel>? musicType, List<int>? artistId, int? isToday, int? isTomorrow, int? isWeekEnd, String? updatedAt})
EventListData.fromJson(Map<String, dynamic> json)
factory

Properties

address String?
getter/setter pair
artistId List<int>?
getter/setter pair
bookingLimit int?
getter/setter pair
city String?
getter/setter pair
discount ↔ dynamic
getter/setter pair
discountType ↔ dynamic
getter/setter pair
endDate DateTime?
getter/setter pair
endTime String?
getter/setter pair
eventImage String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?
getter/setter pair
isFavourite int?
getter/setter pair
isFeatured int?
getter/setter pair
isToday int?
getter/setter pair
isTomorrow int?
getter/setter pair
isWeekEnd int?
getter/setter pair
latitude String?
getter/setter pair
leftBookingCount int?
getter/setter pair
longitude String?
getter/setter pair
musicType List<MusicAffinityModel>?
getter/setter pair
musicTypeId List<int>?
getter/setter pair
name String?
getter/setter pair
postalCode ↔ dynamic
getter/setter pair
price int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDate DateTime?
getter/setter pair
startTime String?
getter/setter pair
status String?
getter/setter pair
statusText String?
getter/setter pair
totalRating int?
getter/setter pair
updatedAt String?
getter/setter pair
userId int?
getter/setter pair

Methods

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

Operators

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