Route.fromJson constructor
Implementation
factory Route.fromJson(Map<String, dynamic> json) {
return Route(
name: json['name'] as String,
grade: json['grade'] as String,
firstAscent: json['firstAscent'] != null
? FirstAscent.fromJson(json['firstAscent'] as Map<String, dynamic>)
: null,
height: json['height'] as double?,
);
}