PetModel class

Constructors

PetModel.new({String? id, String? name, required String petType, required String breed, required String dateOfBirth, required String color, required bool gender, required bool isAvailable, required bool isCertified, required String currentOwnerId, int? cost, int? rating, String? photo1, String? photo2, String? photo3, String? photo4, String? photo5})
PetModel.getData(Map<String, dynamic> jsonResponse)
factory

Properties

breed String
getter/setter pair
color String
getter/setter pair
cost int?
getter/setter pair
currentOwnerId String
getter/setter pair
dateOfBirth String
getter/setter pair
gender bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
getter/setter pair
isAvailable bool
getter/setter pair
isCertified bool
getter/setter pair
name String?
getter/setter pair
petType String
getter/setter pair
photo1 String?
getter/setter pair
photo2 String?
getter/setter pair
photo3 String?
getter/setter pair
photo4 String?
getter/setter pair
photo5 String?
getter/setter pair
rating int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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