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