CancellationStep class

Constructors

CancellationStep({DateTime? from, Money? refund, Money? penalty})
Returns a new CancellationStep instance.

Properties

from ↔ DateTime?
The instant (UTC) the step starts; it runs until the next step's.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
penalty ↔ Money?
What is kept when cancelling in this step; it and the refund add up to the price.
getter/setter pair
refund ↔ Money?
What comes back when cancelling in this step.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

fromJson(dynamic value) → CancellationStep?
Returns a new CancellationStep instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CancellationStep>
mapFromJson(dynamic json) → Map<String, CancellationStep>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CancellationStep>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.