Map<String, Object?> toJson() { var linkGroups = this.linkGroups; final json = <String, Object?>{}; json[r'linkGroups'] = linkGroups.map((i) => i.toJson()).toList(); return json; }