fromJson static method

ThreadData fromJson(
  1. dynamic json
)

Implementation

static ThreadData fromJson(dynamic json) {
  return ThreadData(
    threadList: (json['content'] as List<dynamic>)
        .map((item) => Thread.fromJson(item))
        .toList(),
    totalPages: json['totalPages'],
    totalElements: json['totalElements'],
    last: json['last'],
    numberOfElements: json['numberOfElements'],
    first: json['first'],
    empty: json['empty'],
  );
}