PassioMealPlan class

Class representing a meal plan.

Constructors

PassioMealPlan({required int carbTarget, required int fatTarget, required String mealPlanLabel, required String mealPlanTitle, required int proteinTarget})
Creates a new instance of PassioMealPlan.
const
PassioMealPlan.fromJson(Map<String, dynamic> json)
Creates a PassioMealPlan instance from a JSON map.
factory

Properties

carbTarget int
Target amount of carbohydrates.
final
fatTarget int
Target amount of fat in grams.
final
hashCode int
Calculates the hash code for this PassioMealPlan object.
no setteroverride
mealPlanLabel String
Label for the meal plan.
final
mealPlanTitle String
Title of the meal plan.
final
proteinTarget int
Target amount of protein.
final
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>
Converts the PassioMealPlan instance to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
Compares two PassioMealPlan objects for equality.
override