SpeiderWithTimeResult.fromJson constructor
SpeiderWithTimeResult.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SpeiderWithTimeResult.fromJson(Map<String, dynamic> json) {
final totalNumber = json["totalNum"] as int;
return SpeiderWithTimeResult(
curTime: json["curTime"],
totalNum: totalNumber,
selectTime: json["selectTime"],
list:totalNumber!=0 ? List<SpeiderItemWithTimeItem>.from(json["list"].map((x) => SpeiderItemWithTimeItem.fromJson(x))) : [],
pageId: json["pageId"],
timeOption:json["timeOption"] !=null ? List<TimeOption>.from(json["timeOption"].map((x) => TimeOption.fromJson(x))) : [],
);
}