TimeLine.fromJson constructor

TimeLine.fromJson(
  1. Map json
)

Implementation

factory TimeLine.fromJson(Map json) {
  return TimeLine(
    type: json["type"],
    id: json["id"],
    data: (json["data"] as List?)
            ?.map((item) => AppWidgetData.fromJson(item))
            .toList() ??
        [],
  );
}