RunListModel.fromJson constructor

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

Implementation

factory RunListModel.fromJson(Map<String, dynamic> json) => RunListModel(
  object: json["object"],
  data: List<Run>.from(json["data"].map((x) => Run.fromJson(x))),
  firstId: json["first_id"],
  lastId: json["last_id"],
  hasMore: json["has_more"],
);