RespList<T>.fromJson constructor

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

Implementation

RespList.fromJson(Map<String, dynamic> json) {
  superFromJson(json);
  if (this.isDataVali()) {
    this.list = List<T>.from(json.data.map((x) => dataFromJson(x)));
  } else {
    this.list = [];
  }
}