EcgBean.fromJson constructor

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

Implementation

factory EcgBean.fromJson(Map<String, dynamic> json) => EcgBean(
  type: json["type"],
  ints: List<int>.from((json["ints"] ?? []).map((x) => x)),
  date: json["date"] ?? "",
);