UserList.fromJson constructor

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

Implementation

UserList.fromJson(Map<String, dynamic> json) {
  page = json['page'];
  size = json['size'];
  totalElements = json['totalElements'];
  totalPages = json['totalPages'];
  last = json['last'];
  if (json['content'] != null) {
    content = <Data>[];
    json['content'].forEach((v) { content!.add(new Data.fromJson(v)); });
  }
}