MultisportActivity class

Represents a multisport activity

Constructors

MultisportActivity({required MultisportActivityType type, WorkoutLocationType? location, WorkoutSwimmingLocationType? swimmingLocation})
Creates a new multisport activity

Properties

hashCode int
The hash code for this object.
no setterinherited
location WorkoutLocationType?
The location of the activity location is required if the activity type is not swimming
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
swimmingLocation WorkoutSwimmingLocationType?
The swimming location of the activity (optional) swimmingLocation is required if the activity type is swimming
final
type MultisportActivityType
The type of the activity
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the multisport activity to a JSON object
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) MultisportActivity
Creates a new multisport activity from a JSON object