toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var groupIds = this.groupIds;
  var groups = this.groups;
  var permissions = this.permissions;

  final json = <String, Object?>{};
  json[r'groupIds'] = groupIds;
  json[r'groups'] = groups.map((i) => i.toJson()).toList();
  json[r'permissions'] = permissions.map((i) => i.toJson()).toList();
  return json;
}