WorkoutModel class
WorkoutModel represents the structure of a workout returned by the API
- Annotations
Constructors
-
WorkoutModel({required String id, required String title, required String imgURL, String? category, required String description, int? totalMinutes, int? totalCalories, required List<
String> bodyParts, String? difficultyLevel, required List<ExerciseModel> sequence, Map<String, dynamic> ? rawJSON}) -
const
-
WorkoutModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
bodyParts
→ List<
String> -
final
- category → String?
-
final
- description → String
-
final
- difficultyLevel → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- imgURL → String
-
final
-
rawJSON
→ Map<
String, dynamic> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sequence
→ List<
ExerciseModel> -
final
- title → String
-
final
- totalCalories → int?
-
final
- totalMinutes → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited