toJson method
Implementation
Map<String, Object?> toJson() {
var header = this.header;
var total = this.total;
var users = this.users;
final json = <String, Object?>{};
if (header != null) {
json[r'header'] = header;
}
if (total != null) {
json[r'total'] = total;
}
json[r'users'] = users.map((i) => i.toJson()).toList();
return json;
}