Product class

Product representing a good or a service

Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

Product({required String id, required String name, String? description, ProductType? type, String? category, String? imageUrl, String? homeUrl, required String createTime, String? updateTime, List<LinkDescription>? links})
const
Product.fromJson(Map<String, dynamic> json)
factory

Properties

category String?
The product category. Possible values
final
createTime String
The date and time when the plan was created, in Internet date and time format
final
description String?
The product description.
final
hashCode int
The hash code for this object.
no setterinherited
homeUrl String?
The home page URL for the product.
final
id String
The ID of the product.
final
imageUrl String?
The image URL for the product.
final
An array of request-related HATEOAS links.
final
name String
The product name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ProductType?
The product type. Indicates whether the product is physical or digital goods, or a service. The possible values are:
final
updateTime String?
The date and time when the plan was last updated, in Internet date and time format
final

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.
override

Operators

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