Item class
- Annotations
- @JsonSerializable()
Constructors
- Item()
-
Item.create({String id,
String name, int quantity, double amount} ) -
Item.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
getAmount(
) → double -
getId(
) → String -
getName(
) → String -
getQuantity(
) → int -
setAmount(
double amount ) → void -
setId(
String id ) → void -
setName(
String name ) → void -
setQuantity(
int quantity ) → void -
toJson(
) → Map< String, dynamic> -
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other ) → bool -
The equality operator. [...]
inherited