WooShippingClass class

A shipping class, which lets rates differ per product group.

Constructors

WooShippingClass({required int id, required String name, required Map<String, Object?> raw, String slug = '', String description = '', int count = 0})
Creates a shipping class.
const
WooShippingClass.fromJson(Map<String, Object?> json)
Reads WooCommerce's representation.
factory

Properties

count → int
How many products are in it.
final
description → String
Description.
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Class id.
final
name → String
Display name.
final
raw → Map<String, Object?>
The whole class as the store sent it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
URL slug.
final

Methods

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

Operators

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