TetaProduct class

Product model

Constructors

TetaProduct({required String id, required String name, required int prjId, num price = 0.0, num count = 0, bool isPublic = false, String? description, String? image, Map<String, dynamic>? metadata})
Product model
const

Properties

count num
Product count
final
description String?
Product description
final
hashCode int
The hash code for this object.
no setterinherited
id String
Product id
final
image String?
Product image
final
isPublic bool
Is the product public?
final
metadata Map<String, dynamic>?
Product metadata
final
name String
Product name
final
price num
Product price
final
prjId int
Product id
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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

Operators

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

Static Methods

fromSchema(Map<String, dynamic> json) TetaProduct
Generate a model from a json schema