GradeInfo class

Grade information

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

GradeInfo({required GradeSystem system, required String grade, Map<String, String>? conversions, int? numeric, bool? estimated, GradeScaleRef? scale})
Creates a new GradeInfo instance
GradeInfo.fromJson(Map<String, dynamic> json)
Creates a GradeInfo from JSON
factory

Properties

conversions → Map<String, String>?
Grade conversions to other systems
final
effectiveNumeric → int?
The grade's value on the difficulty axis: numeric when present, otherwise computed from system and grade. Null when the grade is not on its system's ladder.
no setter
estimated → bool?
True when the grade was derived from a level of a grading scale and not read off the climb.
final
grade → String
The grade value
final
hashCode → int
The hash code for this object.
no setterinherited
numeric → int?
The grade's value on the difficulty axis, when the archive carries it. Use effectiveNumeric to also cover archives that do not.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scale → GradeScaleRef?
The level of a grading scale this climb was logged on.
final
system → GradeSystem
The grading system used
final

Methods

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

Operators

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