Extras.fromMap constructor

Extras.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory Extras.fromMap(Map<String, dynamic> json) => Extras(
      surface:
          json["surface"] == null ? null : Steepness.fromMap(json["surface"]),
      waytypes: json["waytypes"] == null
          ? null
          : Steepness.fromMap(json["waytypes"]),
      steepness: json["steepness"] == null
          ? null
          : Steepness.fromMap(json["steepness"]),
    );