Steepness.fromMap constructor

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

Implementation

factory Steepness.fromMap(Map<String, dynamic> json) => Steepness(
      values: json["values"] == null
          ? []
          : List<List<num>>.from(
              json["values"]!.map((x) => List<num>.from(x.map((x) => x)))),
      summary: json["summary"] == null
          ? []
          : List<SummaryElement>.from(
              json["summary"]!.map((x) => SummaryElement.fromMap(x))),
    );