toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.page != null) {
json[r'page'] = this.page;
} else {
json[r'page'] = null;
}
if (this.perPage != null) {
json[r'per_page'] = this.perPage;
} else {
json[r'per_page'] = null;
}
if (this.total != null) {
json[r'total'] = this.total;
} else {
json[r'total'] = null;
}
if (this.totalPages != null) {
json[r'total_pages'] = this.totalPages;
} else {
json[r'total_pages'] = null;
}
return json;
}