toJson method
Implementation
Map<String, Object?> toJson() {
var defaultGroups = this.defaultGroups;
var defaultGroupsDetails = this.defaultGroupsDetails;
var defined = this.defined;
var groupDetails = this.groupDetails;
var groups = this.groups;
var hasUnlimitedSeats = this.hasUnlimitedSeats;
var key = this.key;
var name = this.name;
var numberOfSeats = this.numberOfSeats;
var platform = this.platform;
var remainingSeats = this.remainingSeats;
var selectedByDefault = this.selectedByDefault;
var userCount = this.userCount;
var userCountDescription = this.userCountDescription;
final json = <String, Object?>{};
json[r'defaultGroups'] = defaultGroups;
json[r'defaultGroupsDetails'] =
defaultGroupsDetails.map((i) => i.toJson()).toList();
json[r'defined'] = defined;
json[r'groupDetails'] = groupDetails.map((i) => i.toJson()).toList();
json[r'groups'] = groups;
json[r'hasUnlimitedSeats'] = hasUnlimitedSeats;
if (key != null) {
json[r'key'] = key;
}
if (name != null) {
json[r'name'] = name;
}
if (numberOfSeats != null) {
json[r'numberOfSeats'] = numberOfSeats;
}
json[r'platform'] = platform;
if (remainingSeats != null) {
json[r'remainingSeats'] = remainingSeats;
}
json[r'selectedByDefault'] = selectedByDefault;
if (userCount != null) {
json[r'userCount'] = userCount;
}
if (userCountDescription != null) {
json[r'userCountDescription'] = userCountDescription;
}
return json;
}