Slice class
Slice model
Represents a slice and contains all of related info
- Annotations
-
- @freezed
Constructors
-
Slice.new({@JsonKey(name: 'slice_type') required String? sliceType, @JsonKey(name: 'slice_label') String? sliceLabel, List<
Map< ? items, Map<String, dynamic> >String, dynamic> ? primary}) -
Deafult factory constructor for Slice
factory
-
Slice.fromJson(Map<
String, dynamic> json) -
Creates a Slice object from json
factory
Properties
-
copyWith
→ $SliceCopyWith<
Slice> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
Map< ?String, dynamic> > -
no setterinherited
-
primary
→ Map<
String, dynamic> ? -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sliceLabel → String?
-
no setterinherited
- sliceType → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited