WooProductDimension class
class Category {
final int id;
final String name;
final String slug;
Category(this.id, this.name, this.slug);
Category.fromJson(Map<String, dynamic> json)
: id = json'id'
,
name = json'name'
,
slug = json'slug'
;
Map<String, dynamic> toJson() => {
'id': id,
'name': name,
'slug': slug,
};
@override toString() => toJson().toString();
}
Constructors
- WooProductDimension(String? length, String? height, String? width)
-
WooProductDimension.fromJson(Map<
String, dynamic> json)
Properties
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