Properties.fromMap constructor
Properties.fromMap(
- Map<String, dynamic> json
)
Implementation
factory Properties.fromMap(Map<String, dynamic> json) => Properties(
ascent: json["ascent"],
descent: json["descent"],
segments: json["segments"] == null
? []
: List<Segment>.from(
json["segments"]!.map((x) => Segment.fromMap(x))),
extras: json["extras"] == null ? null : Extras.fromMap(json["extras"]),
summary: json["summary"] == null
? null
: PropertiesSummary.fromMap(json["summary"]),
wayPonums: json["way_ponums"] == null
? []
: List<num>.from(json["way_ponums"]!.map((x) => x)),
);