ClimbSection.fromJson constructor

ClimbSection.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ClimbSection.fromJson(final Map<String, dynamic> json) {
  return ClimbSection(
    startDistanceM: json['startDistanceM'],
    endDistanceM: json['endDistanceM'],
    slope: json['slope'],
    grade: GradeExtension.fromId(json['grade']),
  );
}