Data.fromJson constructor
Implementation
Data.fromJson(Map<String, dynamic> json) {
page = json['page'];
size = json['size'];
totalElements = json['totalElements'];
totalPages = json['totalPages'];
last = json['last'];
first = json['first'];
sort = json['sort'] != null ? new Sort.fromJson(json['sort']) : null;
if (json['content'] != null) {
content = <Content>[];
json['content'].forEach((v) {
content!.add(new Content.fromJson(v));
});
}
}