Session class

A climbing session

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

Session({required int id, String? clid, required String date, String? startTime, String? endTime, String? location, int? locationId, String? locationClid, bool? isIndoor, ClimbType? climbType, SessionType? sessionType, List<String>? partners, Weather? weather, String? notes, RockType? rockType, TerrainType? terrainType, int? approachTime, bool isOngoing = false, Map<String, dynamic>? customFields})
Creates a new Session instance
Session.fromJson(Map<String, dynamic> json)
Creates a Session from JSON
factory

Properties

approachTime → int?
Approach time in minutes
final
clid → String?
CrushLog ID - globally unique identifier (v1.3.0+)
final
climbType → ClimbType?
Primary type of climbing
final
customFields → Map<String, dynamic>?
Custom fields
final
date → String
Date of the session (YYYY-MM-DD)
final
endTime → String?
End time (HH:MM:SS)
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique identifier
final
isIndoor → bool?
Whether this is an indoor session
final
isOngoing → bool
Whether the session is currently ongoing
final
location → String?
Location name (when location is not in database)
final
locationClid → String?
Location CLID - globally unique location identifier for cross-device sync
final
locationId → int?
Reference to location ID (local file reference)
final
notes → String?
Notes
final
partners → List<String>?
Climbing partners
final
rockType → RockType?
Rock type
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sessionType → SessionType?
Session type
final
startTime → String?
Start time (HH:MM:SS)
final
terrainType → TerrainType?
Terrain type
final
weather → Weather?
Weather information
final

Methods

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

Operators

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