import 'package:json_annotation/json_annotation.dart'; import 'package:collection/collection.dart'; import 'hra_repository_enums.dart' as enums; part 'hra_repository_models.g.dart'; @JsonSerializable(explicitToJson: true) class AcademicYearEntity { AcademicYearEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.schoolId, this.startPeriod1, this.startPeriod2, this.end, this.name, }); factory AcademicYearEntity.fromJson(Map json) => _$AcademicYearEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'startPeriod1', includeIfNull: true) DateTime? startPeriod1; @JsonKey(name: 'startPeriod2', includeIfNull: true) DateTime? startPeriod2; @JsonKey(name: 'end', includeIfNull: true) DateTime? end; @JsonKey(name: 'name', includeIfNull: true) String? name; static const fromJsonFactory = _$AcademicYearEntityFromJson; static const toJsonFactory = _$AcademicYearEntityToJson; Map toJson() => _$AcademicYearEntityToJson(this); } @JsonSerializable(explicitToJson: true) class AcademicYearEntityApiResponse { AcademicYearEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory AcademicYearEntityApiResponse.fromJson(Map json) => _$AcademicYearEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AcademicYearEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AcademicYearEntityApiResponseFromJson; static const toJsonFactory = _$AcademicYearEntityApiResponseToJson; Map toJson() => _$AcademicYearEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AcademicYearEntityListApiResponse { AcademicYearEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory AcademicYearEntityListApiResponse.fromJson( Map json) => _$AcademicYearEntityListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AcademicYearEntityListApiResponseFromJson; static const toJsonFactory = _$AcademicYearEntityListApiResponseToJson; Map toJson() => _$AcademicYearEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityEntity { ActivityEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.description, this.videoUrl, this.tag, this.type, this.imageUrl, this.status, this.displayOrder, }); factory ActivityEntity.fromJson(Map json) => _$ActivityEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'videoUrl', includeIfNull: true) String? videoUrl; @JsonKey(name: 'tag', includeIfNull: true) String? tag; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'imageUrl', includeIfNull: true) String? imageUrl; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'displayOrder', includeIfNull: true) int? displayOrder; static const fromJsonFactory = _$ActivityEntityFromJson; static const toJsonFactory = _$ActivityEntityToJson; Map toJson() => _$ActivityEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityEntityApiResponse { ActivityEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ActivityEntityApiResponse.fromJson(Map json) => _$ActivityEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ActivityEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ActivityEntityApiResponseFromJson; static const toJsonFactory = _$ActivityEntityApiResponseToJson; Map toJson() => _$ActivityEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityGetListQuery { ActivityGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.status, this.tag, this.type, }); factory ActivityGetListQuery.fromJson(Map json) => _$ActivityGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'tag', includeIfNull: true) String? tag; @JsonKey(name: 'type', includeIfNull: true) String? type; static const fromJsonFactory = _$ActivityGetListQueryFromJson; static const toJsonFactory = _$ActivityGetListQueryToJson; Map toJson() => _$ActivityGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityListDto { ActivityListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.description, this.videoUrl, this.tag, this.type, this.imageUrl, this.status, this.displayOrder, }); factory ActivityListDto.fromJson(Map json) => _$ActivityListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'videoUrl', includeIfNull: true) String? videoUrl; @JsonKey(name: 'tag', includeIfNull: true) String? tag; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'imageUrl', includeIfNull: true) String? imageUrl; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'displayOrder', includeIfNull: true) int? displayOrder; static const fromJsonFactory = _$ActivityListDtoFromJson; static const toJsonFactory = _$ActivityListDtoToJson; Map toJson() => _$ActivityListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityListDtoFilterResult { ActivityListDtoFilterResult({ this.totalRows, this.data, }); factory ActivityListDtoFilterResult.fromJson(Map json) => _$ActivityListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ActivityListDtoFilterResultFromJson; static const toJsonFactory = _$ActivityListDtoFilterResultToJson; Map toJson() => _$ActivityListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityListDtoFilterResultApiResponse { ActivityListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ActivityListDtoFilterResultApiResponse.fromJson( Map json) => _$ActivityListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ActivityListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ActivityListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ActivityListDtoFilterResultApiResponseToJson; Map toJson() => _$ActivityListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityLogEntity { ActivityLogEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.data, this.objectType, this.ip, }); factory ActivityLogEntity.fromJson(Map json) => _$ActivityLogEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'data', includeIfNull: true) String? data; @JsonKey(name: 'objectType', includeIfNull: true) String? objectType; @JsonKey(name: 'ip', includeIfNull: true) String? ip; static const fromJsonFactory = _$ActivityLogEntityFromJson; static const toJsonFactory = _$ActivityLogEntityToJson; Map toJson() => _$ActivityLogEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ActivityLogEntityApiResponse { ActivityLogEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ActivityLogEntityApiResponse.fromJson(Map json) => _$ActivityLogEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ActivityLogEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ActivityLogEntityApiResponseFromJson; static const toJsonFactory = _$ActivityLogEntityApiResponseToJson; Map toJson() => _$ActivityLogEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ActivitySaveDto { ActivitySaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.description, this.videoUrl, this.tag, this.type, this.imageUrl, this.status, this.displayOrder, }); factory ActivitySaveDto.fromJson(Map json) => _$ActivitySaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'videoUrl', includeIfNull: true) String? videoUrl; @JsonKey(name: 'tag', includeIfNull: true) String? tag; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'imageUrl', includeIfNull: true) String? imageUrl; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'displayOrder', includeIfNull: true) int? displayOrder; static const fromJsonFactory = _$ActivitySaveDtoFromJson; static const toJsonFactory = _$ActivitySaveDtoToJson; Map toJson() => _$ActivitySaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ActivitySaveDtoApiResponse { ActivitySaveDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ActivitySaveDtoApiResponse.fromJson(Map json) => _$ActivitySaveDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ActivitySaveDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ActivitySaveDtoApiResponseFromJson; static const toJsonFactory = _$ActivitySaveDtoApiResponseToJson; Map toJson() => _$ActivitySaveDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AiChatRequest { AiChatRequest({ this.systemPrompt, this.userMessage, this.userMessageContent, this.model, this.temperature, this.maxTokens, }); factory AiChatRequest.fromJson(Map json) => _$AiChatRequestFromJson(json); @JsonKey(name: 'systemPrompt', includeIfNull: true) String? systemPrompt; @JsonKey(name: 'userMessage', includeIfNull: true) String? userMessage; @JsonKey( name: 'userMessageContent', includeIfNull: true, defaultValue: []) List? userMessageContent; @JsonKey(name: 'model', includeIfNull: true) String? model; @JsonKey(name: 'temperature', includeIfNull: true) double? temperature; @JsonKey(name: 'maxTokens', includeIfNull: true) int? maxTokens; static const fromJsonFactory = _$AiChatRequestFromJson; static const toJsonFactory = _$AiChatRequestToJson; Map toJson() => _$AiChatRequestToJson(this); } @JsonSerializable(explicitToJson: true) class AiMessageContent { AiMessageContent({ this.type, }); factory AiMessageContent.fromJson(Map json) => _$AiMessageContentFromJson(json); @JsonKey(name: 'type', includeIfNull: true) String? type; static const fromJsonFactory = _$AiMessageContentFromJson; static const toJsonFactory = _$AiMessageContentToJson; Map toJson() => _$AiMessageContentToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptEntity { AiPromptEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.grade, this.categoryId, this.code, this.name, this.description, this.prompt, this.category, }); factory AiPromptEntity.fromJson(Map json) => _$AiPromptEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'prompt', includeIfNull: true) String? prompt; @JsonKey(name: 'category', includeIfNull: true) CategoryEntity? category; static const fromJsonFactory = _$AiPromptEntityFromJson; static const toJsonFactory = _$AiPromptEntityToJson; Map toJson() => _$AiPromptEntityToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptEntityApiResponse { AiPromptEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory AiPromptEntityApiResponse.fromJson(Map json) => _$AiPromptEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AiPromptEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AiPromptEntityApiResponseFromJson; static const toJsonFactory = _$AiPromptEntityApiResponseToJson; Map toJson() => _$AiPromptEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptGetListQuery { AiPromptGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.code, this.grade, this.categoryId, }); factory AiPromptGetListQuery.fromJson(Map json) => _$AiPromptGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; static const fromJsonFactory = _$AiPromptGetListQueryFromJson; static const toJsonFactory = _$AiPromptGetListQueryToJson; Map toJson() => _$AiPromptGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptListDto { AiPromptListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.grade, this.categoryId, this.code, this.name, this.description, this.prompt, this.category, this.categoryName, }); factory AiPromptListDto.fromJson(Map json) => _$AiPromptListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'prompt', includeIfNull: true) String? prompt; @JsonKey(name: 'category', includeIfNull: true) CategoryEntity? category; @JsonKey(name: 'categoryName', includeIfNull: true) String? categoryName; static const fromJsonFactory = _$AiPromptListDtoFromJson; static const toJsonFactory = _$AiPromptListDtoToJson; Map toJson() => _$AiPromptListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptListDtoFilterResult { AiPromptListDtoFilterResult({ this.totalRows, this.data, }); factory AiPromptListDtoFilterResult.fromJson(Map json) => _$AiPromptListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$AiPromptListDtoFilterResultFromJson; static const toJsonFactory = _$AiPromptListDtoFilterResultToJson; Map toJson() => _$AiPromptListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptListDtoFilterResultApiResponse { AiPromptListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory AiPromptListDtoFilterResultApiResponse.fromJson( Map json) => _$AiPromptListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AiPromptListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AiPromptListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$AiPromptListDtoFilterResultApiResponseToJson; Map toJson() => _$AiPromptListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptRequest { AiPromptRequest({ this.promptCode, this.grade, this.categoryId, this.variables, this.userMessage, this.userMessageContent, this.model, this.temperature, this.maxTokens, }); factory AiPromptRequest.fromJson(Map json) => _$AiPromptRequestFromJson(json); @JsonKey(name: 'promptCode', includeIfNull: true) String? promptCode; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'variables', includeIfNull: true) Object? variables; @JsonKey(name: 'userMessage', includeIfNull: true) String? userMessage; @JsonKey( name: 'userMessageContent', includeIfNull: true, defaultValue: []) List? userMessageContent; @JsonKey(name: 'model', includeIfNull: true) String? model; @JsonKey(name: 'temperature', includeIfNull: true) double? temperature; @JsonKey(name: 'maxTokens', includeIfNull: true) int? maxTokens; static const fromJsonFactory = _$AiPromptRequestFromJson; static const toJsonFactory = _$AiPromptRequestToJson; Map toJson() => _$AiPromptRequestToJson(this); } @JsonSerializable(explicitToJson: true) class AiResponse { AiResponse({ this.success, this.content, this.error, this.model, this.promptTokens, this.completionTokens, this.totalTokens, }); factory AiResponse.fromJson(Map json) => _$AiResponseFromJson(json); @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'error', includeIfNull: true) String? error; @JsonKey(name: 'model', includeIfNull: true) String? model; @JsonKey(name: 'promptTokens', includeIfNull: true) int? promptTokens; @JsonKey(name: 'completionTokens', includeIfNull: true) int? completionTokens; @JsonKey(name: 'totalTokens', includeIfNull: true) int? totalTokens; static const fromJsonFactory = _$AiResponseFromJson; static const toJsonFactory = _$AiResponseToJson; Map toJson() => _$AiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AiResponseApiResponse { AiResponseApiResponse({ this.data, this.message, this.success, this.code, }); factory AiResponseApiResponse.fromJson(Map json) => _$AiResponseApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AiResponse? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AiResponseApiResponseFromJson; static const toJsonFactory = _$AiResponseApiResponseToJson; Map toJson() => _$AiResponseApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamAddDto { AssignExamAddDto({ this.id, this.classId, this.title, this.examId, this.fromDate, this.toDate, this.allowDeadline, this.status, this.type, this.allowViewAnswer, this.duration, }); factory AssignExamAddDto.fromJson(Map json) => _$AssignExamAddDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'allowDeadline', includeIfNull: true) bool? allowDeadline; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'allowViewAnswer', includeIfNull: true) bool? allowViewAnswer; @JsonKey(name: 'duration', includeIfNull: true) int? duration; static const fromJsonFactory = _$AssignExamAddDtoFromJson; static const toJsonFactory = _$AssignExamAddDtoToJson; Map toJson() => _$AssignExamAddDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamAddMultipleDto { AssignExamAddMultipleDto({ this.classes, this.assignExam, }); factory AssignExamAddMultipleDto.fromJson(Map json) => _$AssignExamAddMultipleDtoFromJson(json); @JsonKey( name: 'classes', includeIfNull: true, defaultValue: []) List? classes; @JsonKey(name: 'assignExam', includeIfNull: true) AssignExamAddDto? assignExam; static const fromJsonFactory = _$AssignExamAddMultipleDtoFromJson; static const toJsonFactory = _$AssignExamAddMultipleDtoToJson; Map toJson() => _$AssignExamAddMultipleDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamCheckDoExamDto { AssignExamCheckDoExamDto({ this.message, this.isCanViewResult, this.classId, }); factory AssignExamCheckDoExamDto.fromJson(Map json) => _$AssignExamCheckDoExamDtoFromJson(json); @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'isCanViewResult', includeIfNull: true) bool? isCanViewResult; @JsonKey(name: 'classId', includeIfNull: true) int? classId; static const fromJsonFactory = _$AssignExamCheckDoExamDtoFromJson; static const toJsonFactory = _$AssignExamCheckDoExamDtoToJson; Map toJson() => _$AssignExamCheckDoExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamCheckDoExamDtoApiResponse { AssignExamCheckDoExamDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamCheckDoExamDtoApiResponse.fromJson( Map json) => _$AssignExamCheckDoExamDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AssignExamCheckDoExamDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamCheckDoExamDtoApiResponseFromJson; static const toJsonFactory = _$AssignExamCheckDoExamDtoApiResponseToJson; Map toJson() => _$AssignExamCheckDoExamDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamCountDto { AssignExamCountDto({ this.countExam, this.countTest, this.countExercise, }); factory AssignExamCountDto.fromJson(Map json) => _$AssignExamCountDtoFromJson(json); @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; @JsonKey(name: 'countTest', includeIfNull: true) int? countTest; @JsonKey(name: 'countExercise', includeIfNull: true) int? countExercise; static const fromJsonFactory = _$AssignExamCountDtoFromJson; static const toJsonFactory = _$AssignExamCountDtoToJson; Map toJson() => _$AssignExamCountDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamCountDtoApiResponse { AssignExamCountDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamCountDtoApiResponse.fromJson(Map json) => _$AssignExamCountDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AssignExamCountDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamCountDtoApiResponseFromJson; static const toJsonFactory = _$AssignExamCountDtoApiResponseToJson; Map toJson() => _$AssignExamCountDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamDetailDto { AssignExamDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.classId, this.examId, this.fromDate, this.toDate, this.allowDeadline, this.allowViewAnswer, this.duration, this.status, this.type, this.assignExamUsers, this.subject, this.questionCount, this.canEdit, }); factory AssignExamDetailDto.fromJson(Map json) => _$AssignExamDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'allowDeadline', includeIfNull: true) bool? allowDeadline; @JsonKey(name: 'allowViewAnswer', includeIfNull: true) bool? allowViewAnswer; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey( name: 'assignExamUsers', includeIfNull: true, defaultValue: []) List? assignExamUsers; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'questionCount', includeIfNull: true) int? questionCount; @JsonKey(name: 'canEdit', includeIfNull: true) bool? canEdit; static const fromJsonFactory = _$AssignExamDetailDtoFromJson; static const toJsonFactory = _$AssignExamDetailDtoToJson; Map toJson() => _$AssignExamDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamDoneDto { AssignExamDoneDto({ this.id, this.title, this.endDate, this.mark, this.totalMark, this.examId, this.examResultId, this.status, }); factory AssignExamDoneDto.fromJson(Map json) => _$AssignExamDoneDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; static const fromJsonFactory = _$AssignExamDoneDtoFromJson; static const toJsonFactory = _$AssignExamDoneDtoToJson; Map toJson() => _$AssignExamDoneDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamDoneDtoListApiResponse { AssignExamDoneDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamDoneDtoListApiResponse.fromJson( Map json) => _$AssignExamDoneDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamDoneDtoListApiResponseFromJson; static const toJsonFactory = _$AssignExamDoneDtoListApiResponseToJson; Map toJson() => _$AssignExamDoneDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamEditDto { AssignExamEditDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.classId, this.examId, this.fromDate, this.toDate, this.allowDeadline, this.allowViewAnswer, this.duration, this.status, this.type, this.assignExamUsers, this.assignUsers, }); factory AssignExamEditDto.fromJson(Map json) => _$AssignExamEditDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'allowDeadline', includeIfNull: true) bool? allowDeadline; @JsonKey(name: 'allowViewAnswer', includeIfNull: true) bool? allowViewAnswer; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey( name: 'assignExamUsers', includeIfNull: true, defaultValue: []) List? assignExamUsers; @JsonKey( name: 'assignUsers', includeIfNull: true, defaultValue: []) List? assignUsers; static const fromJsonFactory = _$AssignExamEditDtoFromJson; static const toJsonFactory = _$AssignExamEditDtoToJson; Map toJson() => _$AssignExamEditDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamEntity { AssignExamEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.classId, this.examId, this.fromDate, this.toDate, this.allowDeadline, this.allowViewAnswer, this.duration, this.status, this.type, this.assignExamUsers, }); factory AssignExamEntity.fromJson(Map json) => _$AssignExamEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'allowDeadline', includeIfNull: true) bool? allowDeadline; @JsonKey(name: 'allowViewAnswer', includeIfNull: true) bool? allowViewAnswer; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey( name: 'assignExamUsers', includeIfNull: true, defaultValue: []) List? assignExamUsers; static const fromJsonFactory = _$AssignExamEntityFromJson; static const toJsonFactory = _$AssignExamEntityToJson; Map toJson() => _$AssignExamEntityToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListByClassQuery { AssignExamListByClassQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.subjectId, this.fromDate, this.toDate, this.classId, this.type, this.userId, this.isGetAll, this.status, }); factory AssignExamListByClassQuery.fromJson(Map json) => _$AssignExamListByClassQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'isGetAll', includeIfNull: true) bool? isGetAll; @JsonKey(name: 'status', includeIfNull: true) int? status; static const fromJsonFactory = _$AssignExamListByClassQueryFromJson; static const toJsonFactory = _$AssignExamListByClassQueryToJson; Map toJson() => _$AssignExamListByClassQueryToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListByExamIdDto { AssignExamListByExamIdDto({ this.id, this.examId, this.className, this.type, this.fromDate, this.countPupilDone, this.countPupil, this.countNeedMark, this.classId, this.createdBy, }); factory AssignExamListByExamIdDto.fromJson(Map json) => _$AssignExamListByExamIdDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'className', includeIfNull: true) String? className; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'countPupilDone', includeIfNull: true) int? countPupilDone; @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countNeedMark', includeIfNull: true) int? countNeedMark; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; static const fromJsonFactory = _$AssignExamListByExamIdDtoFromJson; static const toJsonFactory = _$AssignExamListByExamIdDtoToJson; Map toJson() => _$AssignExamListByExamIdDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListByExamIdDtoFilterResult { AssignExamListByExamIdDtoFilterResult({ this.totalRows, this.data, }); factory AssignExamListByExamIdDtoFilterResult.fromJson( Map json) => _$AssignExamListByExamIdDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$AssignExamListByExamIdDtoFilterResultFromJson; static const toJsonFactory = _$AssignExamListByExamIdDtoFilterResultToJson; Map toJson() => _$AssignExamListByExamIdDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListByExamIdFilterDto { AssignExamListByExamIdFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.examId, this.fromDate, this.toDate, this.type, this.classId, }); factory AssignExamListByExamIdFilterDto.fromJson(Map json) => _$AssignExamListByExamIdFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'classId', includeIfNull: true) int? classId; static const fromJsonFactory = _$AssignExamListByExamIdFilterDtoFromJson; static const toJsonFactory = _$AssignExamListByExamIdFilterDtoToJson; Map toJson() => _$AssignExamListByExamIdFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListDto { AssignExamListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.classId, this.title, this.subjectId, this.subject, this.fromDate, this.isHot, this.toDate, this.status, this.countPupil, this.countPupilDone, this.isOwner, this.isTeacher, this.examId, this.mark, this.userStatus, this.examResultId, this.allowViewAnswer, this.pupilSubmissionTime, this.countNeedMark, this.duration, }); factory AssignExamListDto.fromJson(Map json) => _$AssignExamListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'isHot', includeIfNull: true) bool? isHot; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countPupilDone', includeIfNull: true) int? countPupilDone; @JsonKey(name: 'isOwner', includeIfNull: true) bool? isOwner; @JsonKey(name: 'isTeacher', includeIfNull: true) bool? isTeacher; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey( name: 'userStatus', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? userStatus; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; @JsonKey(name: 'allowViewAnswer', includeIfNull: true) bool? allowViewAnswer; @JsonKey(name: 'pupilSubmissionTime', includeIfNull: true) DateTime? pupilSubmissionTime; @JsonKey(name: 'countNeedMark', includeIfNull: true) int? countNeedMark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; static const fromJsonFactory = _$AssignExamListDtoFromJson; static const toJsonFactory = _$AssignExamListDtoToJson; Map toJson() => _$AssignExamListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListDtoFilterResult { AssignExamListDtoFilterResult({ this.totalRows, this.data, }); factory AssignExamListDtoFilterResult.fromJson(Map json) => _$AssignExamListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$AssignExamListDtoFilterResultFromJson; static const toJsonFactory = _$AssignExamListDtoFilterResultToJson; Map toJson() => _$AssignExamListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListExamDto { AssignExamListExamDto({ this.id, this.title, this.subject, this.fromDate, this.toDate, this.status, this.type, }); factory AssignExamListExamDto.fromJson(Map json) => _$AssignExamListExamDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamStatusEnumToJson, fromJson: assignExamStatusEnumFromJson) enums.AssignExamStatusEnum? status; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; static const fromJsonFactory = _$AssignExamListExamDtoFromJson; static const toJsonFactory = _$AssignExamListExamDtoToJson; Map toJson() => _$AssignExamListExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListExamDtoFilterResult { AssignExamListExamDtoFilterResult({ this.totalRows, this.data, }); factory AssignExamListExamDtoFilterResult.fromJson( Map json) => _$AssignExamListExamDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$AssignExamListExamDtoFilterResultFromJson; static const toJsonFactory = _$AssignExamListExamDtoFilterResultToJson; Map toJson() => _$AssignExamListExamDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListExamDtoFilterResultApiResponse { AssignExamListExamDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamListExamDtoFilterResultApiResponse.fromJson( Map json) => _$AssignExamListExamDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) AssignExamListExamDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamListExamDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$AssignExamListExamDtoFilterResultApiResponseToJson; Map toJson() => _$AssignExamListExamDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListExamFilterDto { AssignExamListExamFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.userId, this.userStatus, }); factory AssignExamListExamFilterDto.fromJson(Map json) => _$AssignExamListExamFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey( name: 'userStatus', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? userStatus; static const fromJsonFactory = _$AssignExamListExamFilterDtoFromJson; static const toJsonFactory = _$AssignExamListExamFilterDtoToJson; Map toJson() => _$AssignExamListExamFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListUserDto { AssignExamListUserDto({ this.assignExamId, this.userId, this.status, this.examResultId, this.startDate, this.mark, this.duration, this.endDate, this.note, this.avatar, this.fullName, this.overdue, this.timeMarking, }); factory AssignExamListUserDto.fromJson(Map json) => _$AssignExamListUserDtoFromJson(json); @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'note', includeIfNull: true) String? note; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'overdue', includeIfNull: true) bool? overdue; @JsonKey(name: 'timeMarking', includeIfNull: true) DateTime? timeMarking; static const fromJsonFactory = _$AssignExamListUserDtoFromJson; static const toJsonFactory = _$AssignExamListUserDtoToJson; Map toJson() => _$AssignExamListUserDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamListUserFilterDto { AssignExamListUserFilterDto({ this.keyword, this.id, this.fromDate, this.toDate, this.status, this.sortExpression, }); factory AssignExamListUserFilterDto.fromJson(Map json) => _$AssignExamListUserFilterDtoFromJson(json); @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; static const fromJsonFactory = _$AssignExamListUserFilterDtoFromJson; static const toJsonFactory = _$AssignExamListUserFilterDtoToJson; Map toJson() => _$AssignExamListUserFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamNeedDoDto { AssignExamNeedDoDto({ this.examId, this.id, this.title, this.subjectId, this.subject, this.toDate, this.type, this.duration, }); factory AssignExamNeedDoDto.fromJson(Map json) => _$AssignExamNeedDoDtoFromJson(json); @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'duration', includeIfNull: true) int? duration; static const fromJsonFactory = _$AssignExamNeedDoDtoFromJson; static const toJsonFactory = _$AssignExamNeedDoDtoToJson; Map toJson() => _$AssignExamNeedDoDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamNeedDoDtoListApiResponse { AssignExamNeedDoDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamNeedDoDtoListApiResponse.fromJson( Map json) => _$AssignExamNeedDoDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamNeedDoDtoListApiResponseFromJson; static const toJsonFactory = _$AssignExamNeedDoDtoListApiResponseToJson; Map toJson() => _$AssignExamNeedDoDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamScoreDistributionDto { AssignExamScoreDistributionDto({ this.scoreName, this.count, }); factory AssignExamScoreDistributionDto.fromJson(Map json) => _$AssignExamScoreDistributionDtoFromJson(json); @JsonKey(name: 'scoreName', includeIfNull: true) String? scoreName; @JsonKey(name: 'count', includeIfNull: true) int? count; static const fromJsonFactory = _$AssignExamScoreDistributionDtoFromJson; static const toJsonFactory = _$AssignExamScoreDistributionDtoToJson; Map toJson() => _$AssignExamScoreDistributionDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamScoreDistributionDtoListApiResponse { AssignExamScoreDistributionDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamScoreDistributionDtoListApiResponse.fromJson( Map json) => _$AssignExamScoreDistributionDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamScoreDistributionDtoListApiResponseFromJson; static const toJsonFactory = _$AssignExamScoreDistributionDtoListApiResponseToJson; Map toJson() => _$AssignExamScoreDistributionDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamTopDifficultQuestionDto { AssignExamTopDifficultQuestionDto({ this.questionId, this.question, this.count, }); factory AssignExamTopDifficultQuestionDto.fromJson( Map json) => _$AssignExamTopDifficultQuestionDtoFromJson(json); @JsonKey(name: 'questionId', includeIfNull: true) int? questionId; @JsonKey(name: 'question', includeIfNull: true) String? question; @JsonKey(name: 'count', includeIfNull: true) int? count; static const fromJsonFactory = _$AssignExamTopDifficultQuestionDtoFromJson; static const toJsonFactory = _$AssignExamTopDifficultQuestionDtoToJson; Map toJson() => _$AssignExamTopDifficultQuestionDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamTopDifficultQuestionDtoListApiResponse { AssignExamTopDifficultQuestionDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory AssignExamTopDifficultQuestionDtoListApiResponse.fromJson( Map json) => _$AssignExamTopDifficultQuestionDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$AssignExamTopDifficultQuestionDtoListApiResponseFromJson; static const toJsonFactory = _$AssignExamTopDifficultQuestionDtoListApiResponseToJson; Map toJson() => _$AssignExamTopDifficultQuestionDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamUpdateNoteDto { AssignExamUpdateNoteDto({ this.id, this.userId, this.note, }); factory AssignExamUpdateNoteDto.fromJson(Map json) => _$AssignExamUpdateNoteDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'note', includeIfNull: true) String? note; static const fromJsonFactory = _$AssignExamUpdateNoteDtoFromJson; static const toJsonFactory = _$AssignExamUpdateNoteDtoToJson; Map toJson() => _$AssignExamUpdateNoteDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamUpdateTimeDto { AssignExamUpdateTimeDto({ this.id, this.time, }); factory AssignExamUpdateTimeDto.fromJson(Map json) => _$AssignExamUpdateTimeDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'time', includeIfNull: true) DateTime? time; static const fromJsonFactory = _$AssignExamUpdateTimeDtoFromJson; static const toJsonFactory = _$AssignExamUpdateTimeDtoToJson; Map toJson() => _$AssignExamUpdateTimeDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamUserEditDto { AssignExamUserEditDto({ this.assignExamId, this.userId, this.status, this.examResultId, this.startDate, this.mark, this.duration, this.endDate, this.note, this.classUserId, }); factory AssignExamUserEditDto.fromJson(Map json) => _$AssignExamUserEditDtoFromJson(json); @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'note', includeIfNull: true) String? note; @JsonKey(name: 'classUserId', includeIfNull: true) int? classUserId; static const fromJsonFactory = _$AssignExamUserEditDtoFromJson; static const toJsonFactory = _$AssignExamUserEditDtoToJson; Map toJson() => _$AssignExamUserEditDtoToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExamUserEntity { AssignExamUserEntity({ this.assignExamId, this.userId, this.status, this.examResultId, this.startDate, this.mark, this.duration, this.endDate, this.note, }); factory AssignExamUserEntity.fromJson(Map json) => _$AssignExamUserEntityFromJson(json); @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'note', includeIfNull: true) String? note; static const fromJsonFactory = _$AssignExamUserEntityFromJson; static const toJsonFactory = _$AssignExamUserEntityToJson; Map toJson() => _$AssignExamUserEntityToJson(this); } @JsonSerializable(explicitToJson: true) class AssignExistingTeacherDto { AssignExistingTeacherDto({ this.schoolId, this.userId, this.subject, this.classManage, this.classList, }); factory AssignExistingTeacherDto.fromJson(Map json) => _$AssignExistingTeacherDtoFromJson(json); @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'subject', includeIfNull: true, defaultValue: []) List? subject; @JsonKey(name: 'classManage', includeIfNull: true, defaultValue: []) List? classManage; @JsonKey(name: 'classList', includeIfNull: true, defaultValue: []) List? classList; static const fromJsonFactory = _$AssignExistingTeacherDtoFromJson; static const toJsonFactory = _$AssignExistingTeacherDtoToJson; Map toJson() => _$AssignExistingTeacherDtoToJson(this); } @JsonSerializable(explicitToJson: true) class BooleanApiResponse { BooleanApiResponse({ this.data, this.message, this.success, this.code, }); factory BooleanApiResponse.fromJson(Map json) => _$BooleanApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) bool? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$BooleanApiResponseFromJson; static const toJsonFactory = _$BooleanApiResponseToJson; Map toJson() => _$BooleanApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class CartAddItemDto { CartAddItemDto({ this.productId, this.quantity, }); factory CartAddItemDto.fromJson(Map json) => _$CartAddItemDtoFromJson(json); @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; static const fromJsonFactory = _$CartAddItemDtoFromJson; static const toJsonFactory = _$CartAddItemDtoToJson; Map toJson() => _$CartAddItemDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CartDto { CartDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.notes, this.items, }); factory CartDto.fromJson(Map json) => _$CartDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'items', includeIfNull: true, defaultValue: []) List? items; static const fromJsonFactory = _$CartDtoFromJson; static const toJsonFactory = _$CartDtoToJson; Map toJson() => _$CartDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CartDtoApiResponse { CartDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory CartDtoApiResponse.fromJson(Map json) => _$CartDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) CartDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CartDtoApiResponseFromJson; static const toJsonFactory = _$CartDtoApiResponseToJson; Map toJson() => _$CartDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class CartEntity { CartEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.notes, this.items, }); factory CartEntity.fromJson(Map json) => _$CartEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'items', includeIfNull: true, defaultValue: []) List? items; static const fromJsonFactory = _$CartEntityFromJson; static const toJsonFactory = _$CartEntityToJson; Map toJson() => _$CartEntityToJson(this); } @JsonSerializable(explicitToJson: true) class CartItemDto { CartItemDto({ this.id, this.cartId, this.productId, this.quantity, this.product, }); factory CartItemDto.fromJson(Map json) => _$CartItemDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'cartId', includeIfNull: true) int? cartId; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; @JsonKey(name: 'product', includeIfNull: true) ProductListDto? product; static const fromJsonFactory = _$CartItemDtoFromJson; static const toJsonFactory = _$CartItemDtoToJson; Map toJson() => _$CartItemDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CartItemEntity { CartItemEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.cartId, this.productId, this.quantity, this.cart, this.product, }); factory CartItemEntity.fromJson(Map json) => _$CartItemEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'cartId', includeIfNull: true) int? cartId; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; @JsonKey(name: 'cart', includeIfNull: true) CartEntity? cart; @JsonKey(name: 'product', includeIfNull: true) ProductEntity? product; static const fromJsonFactory = _$CartItemEntityFromJson; static const toJsonFactory = _$CartItemEntityToJson; Map toJson() => _$CartItemEntityToJson(this); } @JsonSerializable(explicitToJson: true) class CartUpdateItemDto { CartUpdateItemDto({ this.cartItemId, this.quantity, }); factory CartUpdateItemDto.fromJson(Map json) => _$CartUpdateItemDtoFromJson(json); @JsonKey(name: 'cartItemId', includeIfNull: true) int? cartItemId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; static const fromJsonFactory = _$CartUpdateItemDtoFromJson; static const toJsonFactory = _$CartUpdateItemDtoToJson; Map toJson() => _$CartUpdateItemDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryClassLevelEntity { CategoryClassLevelEntity({ this.categoryId, this.classLevel, this.category, }); factory CategoryClassLevelEntity.fromJson(Map json) => _$CategoryClassLevelEntityFromJson(json); @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'category', includeIfNull: true) CategoryEntity? category; static const fromJsonFactory = _$CategoryClassLevelEntityFromJson; static const toJsonFactory = _$CategoryClassLevelEntityToJson; Map toJson() => _$CategoryClassLevelEntityToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryEntity { CategoryEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.url, this.code, this.parentId, this.level, this.path, this.icon, this.status, this.categoryClassLevels, }); factory CategoryEntity.fromJson(Map json) => _$CategoryEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'level', includeIfNull: true) int? level; @JsonKey(name: 'path', includeIfNull: true) String? path; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey( name: 'categoryClassLevels', includeIfNull: true, defaultValue: []) List? categoryClassLevels; static const fromJsonFactory = _$CategoryEntityFromJson; static const toJsonFactory = _$CategoryEntityToJson; Map toJson() => _$CategoryEntityToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryEntityApiResponse { CategoryEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory CategoryEntityApiResponse.fromJson(Map json) => _$CategoryEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) CategoryEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CategoryEntityApiResponseFromJson; static const toJsonFactory = _$CategoryEntityApiResponseToJson; Map toJson() => _$CategoryEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryGetListQuery { CategoryGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.zoneId, this.code, }); factory CategoryGetListQuery.fromJson(Map json) => _$CategoryGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'zoneId', includeIfNull: true) int? zoneId; @JsonKey(name: 'code', includeIfNull: true) String? code; static const fromJsonFactory = _$CategoryGetListQueryFromJson; static const toJsonFactory = _$CategoryGetListQueryToJson; Map toJson() => _$CategoryGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryGetListWithGalleryCountQuery { CategoryGetListWithGalleryCountQuery({ this.code, this.includeTotal, }); factory CategoryGetListWithGalleryCountQuery.fromJson( Map json) => _$CategoryGetListWithGalleryCountQueryFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'includeTotal', includeIfNull: true) bool? includeTotal; static const fromJsonFactory = _$CategoryGetListWithGalleryCountQueryFromJson; static const toJsonFactory = _$CategoryGetListWithGalleryCountQueryToJson; Map toJson() => _$CategoryGetListWithGalleryCountQueryToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryGetListWithNewsCountQuery { CategoryGetListWithNewsCountQuery({ this.code, this.includeTotal, }); factory CategoryGetListWithNewsCountQuery.fromJson( Map json) => _$CategoryGetListWithNewsCountQueryFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'includeTotal', includeIfNull: true) bool? includeTotal; static const fromJsonFactory = _$CategoryGetListWithNewsCountQueryFromJson; static const toJsonFactory = _$CategoryGetListWithNewsCountQueryToJson; Map toJson() => _$CategoryGetListWithNewsCountQueryToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryListDto { CategoryListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.url, this.code, this.parentId, this.level, this.path, this.icon, this.status, this.categoryClassLevels, }); factory CategoryListDto.fromJson(Map json) => _$CategoryListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'level', includeIfNull: true) int? level; @JsonKey(name: 'path', includeIfNull: true) String? path; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey( name: 'categoryClassLevels', includeIfNull: true, defaultValue: []) List? categoryClassLevels; static const fromJsonFactory = _$CategoryListDtoFromJson; static const toJsonFactory = _$CategoryListDtoToJson; Map toJson() => _$CategoryListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryListDtoFilterResult { CategoryListDtoFilterResult({ this.totalRows, this.data, }); factory CategoryListDtoFilterResult.fromJson(Map json) => _$CategoryListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$CategoryListDtoFilterResultFromJson; static const toJsonFactory = _$CategoryListDtoFilterResultToJson; Map toJson() => _$CategoryListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryListDtoFilterResultApiResponse { CategoryListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory CategoryListDtoFilterResultApiResponse.fromJson( Map json) => _$CategoryListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) CategoryListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CategoryListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$CategoryListDtoFilterResultApiResponseToJson; Map toJson() => _$CategoryListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryWithGalleryCountDto { CategoryWithGalleryCountDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.url, this.code, this.parentId, this.level, this.path, this.icon, this.status, this.categoryClassLevels, this.galleryCount, }); factory CategoryWithGalleryCountDto.fromJson(Map json) => _$CategoryWithGalleryCountDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'level', includeIfNull: true) int? level; @JsonKey(name: 'path', includeIfNull: true) String? path; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey( name: 'categoryClassLevels', includeIfNull: true, defaultValue: []) List? categoryClassLevels; @JsonKey(name: 'galleryCount', includeIfNull: true) int? galleryCount; static const fromJsonFactory = _$CategoryWithGalleryCountDtoFromJson; static const toJsonFactory = _$CategoryWithGalleryCountDtoToJson; Map toJson() => _$CategoryWithGalleryCountDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryWithGalleryCountDtoListApiResponse { CategoryWithGalleryCountDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory CategoryWithGalleryCountDtoListApiResponse.fromJson( Map json) => _$CategoryWithGalleryCountDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CategoryWithGalleryCountDtoListApiResponseFromJson; static const toJsonFactory = _$CategoryWithGalleryCountDtoListApiResponseToJson; Map toJson() => _$CategoryWithGalleryCountDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryWithNewsCountDto { CategoryWithNewsCountDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.url, this.code, this.parentId, this.level, this.path, this.icon, this.status, this.categoryClassLevels, this.newsCount, }); factory CategoryWithNewsCountDto.fromJson(Map json) => _$CategoryWithNewsCountDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'level', includeIfNull: true) int? level; @JsonKey(name: 'path', includeIfNull: true) String? path; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey( name: 'categoryClassLevels', includeIfNull: true, defaultValue: []) List? categoryClassLevels; @JsonKey(name: 'newsCount', includeIfNull: true) int? newsCount; static const fromJsonFactory = _$CategoryWithNewsCountDtoFromJson; static const toJsonFactory = _$CategoryWithNewsCountDtoToJson; Map toJson() => _$CategoryWithNewsCountDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CategoryWithNewsCountDtoListApiResponse { CategoryWithNewsCountDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory CategoryWithNewsCountDtoListApiResponse.fromJson( Map json) => _$CategoryWithNewsCountDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CategoryWithNewsCountDtoListApiResponseFromJson; static const toJsonFactory = _$CategoryWithNewsCountDtoListApiResponseToJson; Map toJson() => _$CategoryWithNewsCountDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ChangeEmailDto { ChangeEmailDto({ this.id, this.password, this.email, }); factory ChangeEmailDto.fromJson(Map json) => _$ChangeEmailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'email', includeIfNull: true) String? email; static const fromJsonFactory = _$ChangeEmailDtoFromJson; static const toJsonFactory = _$ChangeEmailDtoToJson; Map toJson() => _$ChangeEmailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ChangePasswordDto { ChangePasswordDto({ this.oldPassword, this.newPassword, this.reNewPassword, }); factory ChangePasswordDto.fromJson(Map json) => _$ChangePasswordDtoFromJson(json); @JsonKey(name: 'oldPassword', includeIfNull: true) String? oldPassword; @JsonKey(name: 'newPassword', includeIfNull: true) String? newPassword; @JsonKey(name: 'reNewPassword', includeIfNull: true) String? reNewPassword; static const fromJsonFactory = _$ChangePasswordDtoFromJson; static const toJsonFactory = _$ChangePasswordDtoToJson; Map toJson() => _$ChangePasswordDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ChatGroupDetailDto { ChatGroupDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.avatar, this.status, this.type, this.documentId, this.listUserOfGroup, this.isOnline, }); factory ChatGroupDetailDto.fromJson(Map json) => _$ChatGroupDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'documentId', includeIfNull: true) int? documentId; @JsonKey( name: 'listUserOfGroup', includeIfNull: true, defaultValue: []) List? listUserOfGroup; @JsonKey(name: 'isOnline', includeIfNull: true) bool? isOnline; static const fromJsonFactory = _$ChatGroupDetailDtoFromJson; static const toJsonFactory = _$ChatGroupDetailDtoToJson; Map toJson() => _$ChatGroupDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ChatGroupDetailDtoApiResponse { ChatGroupDetailDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ChatGroupDetailDtoApiResponse.fromJson(Map json) => _$ChatGroupDetailDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ChatGroupDetailDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ChatGroupDetailDtoApiResponseFromJson; static const toJsonFactory = _$ChatGroupDetailDtoApiResponseToJson; Map toJson() => _$ChatGroupDetailDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ChatGroupEntity { ChatGroupEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.avatar, this.status, this.type, this.documentId, }); factory ChatGroupEntity.fromJson(Map json) => _$ChatGroupEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'documentId', includeIfNull: true) int? documentId; static const fromJsonFactory = _$ChatGroupEntityFromJson; static const toJsonFactory = _$ChatGroupEntityToJson; Map toJson() => _$ChatGroupEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ChatGroupEntityApiResponse { ChatGroupEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ChatGroupEntityApiResponse.fromJson(Map json) => _$ChatGroupEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ChatGroupEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ChatGroupEntityApiResponseFromJson; static const toJsonFactory = _$ChatGroupEntityApiResponseToJson; Map toJson() => _$ChatGroupEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ClassAddListUserCommand { ClassAddListUserCommand({ this.userIds, this.classId, this.role, }); factory ClassAddListUserCommand.fromJson(Map json) => _$ClassAddListUserCommandFromJson(json); @JsonKey(name: 'userIds', includeIfNull: true, defaultValue: []) List? userIds; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey( name: 'role', includeIfNull: true, toJson: classUserRoleEnumToJson, fromJson: classUserRoleEnumFromJson) enums.ClassUserRoleEnum? role; static const fromJsonFactory = _$ClassAddListUserCommandFromJson; static const toJsonFactory = _$ClassAddListUserCommandToJson; Map toJson() => _$ClassAddListUserCommandToJson(this); } @JsonSerializable(explicitToJson: true) class ClassByUserDto { ClassByUserDto({ this.id, this.name, }); factory ClassByUserDto.fromJson(Map json) => _$ClassByUserDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; static const fromJsonFactory = _$ClassByUserDtoFromJson; static const toJsonFactory = _$ClassByUserDtoToJson; Map toJson() => _$ClassByUserDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassChangeClassCommand { ClassChangeClassCommand({ this.userIds, this.oldClassId, this.newClassId, this.status, }); factory ClassChangeClassCommand.fromJson(Map json) => _$ClassChangeClassCommandFromJson(json); @JsonKey(name: 'userIds', includeIfNull: true, defaultValue: []) List? userIds; @JsonKey(name: 'oldClassId', includeIfNull: true) int? oldClassId; @JsonKey(name: 'newClassId', includeIfNull: true) int? newClassId; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; static const fromJsonFactory = _$ClassChangeClassCommandFromJson; static const toJsonFactory = _$ClassChangeClassCommandToJson; Map toJson() => _$ClassChangeClassCommandToJson(this); } @JsonSerializable(explicitToJson: true) class ClassDetailDto { ClassDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.schoolId, this.academicYearId, this.status, this.grade, this.classProgramTypeId, this.classProgramType, this.classType, this.productId, this.maxStudents, this.startDate, this.endDate, this.zoomMeetingId, this.zoomPassword, this.description, this.zoomHostVideo, this.zoomParticipantVideo, this.zoomJoinBeforeHost, this.zoomMuteUponEntry, this.zoomAutoRecording, this.classUsers, this.assignExams, this.classSessions, this.currentRole, }); factory ClassDetailDto.fromJson(Map json) => _$ClassDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'academicYearId', includeIfNull: true) int? academicYearId; @JsonKey( name: 'status', includeIfNull: true, toJson: classStatusEnumToJson, fromJson: classStatusEnumFromJson) enums.ClassStatusEnum? status; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'classProgramTypeId', includeIfNull: true) int? classProgramTypeId; @JsonKey(name: 'classProgramType', includeIfNull: true) ClassProgramTypeEntity? classProgramType; @JsonKey( name: 'classType', includeIfNull: true, toJson: classTypeEnumToJson, fromJson: classTypeEnumFromJson) enums.ClassTypeEnum? classType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'maxStudents', includeIfNull: true) int? maxStudents; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'zoomMeetingId', includeIfNull: true) String? zoomMeetingId; @JsonKey(name: 'zoomPassword', includeIfNull: true) String? zoomPassword; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'zoomHostVideo', includeIfNull: true) bool? zoomHostVideo; @JsonKey(name: 'zoomParticipantVideo', includeIfNull: true) bool? zoomParticipantVideo; @JsonKey(name: 'zoomJoinBeforeHost', includeIfNull: true) bool? zoomJoinBeforeHost; @JsonKey(name: 'zoomMuteUponEntry', includeIfNull: true) bool? zoomMuteUponEntry; @JsonKey(name: 'zoomAutoRecording', includeIfNull: true) String? zoomAutoRecording; @JsonKey( name: 'classUsers', includeIfNull: true, defaultValue: []) List? classUsers; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; @JsonKey( name: 'classSessions', includeIfNull: true, defaultValue: []) List? classSessions; @JsonKey( name: 'currentRole', includeIfNull: true, toJson: classUserRoleEnumToJson, fromJson: classUserRoleEnumFromJson) enums.ClassUserRoleEnum? currentRole; static const fromJsonFactory = _$ClassDetailDtoFromJson; static const toJsonFactory = _$ClassDetailDtoToJson; Map toJson() => _$ClassDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassEntity { ClassEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.schoolId, this.academicYearId, this.status, this.grade, this.classProgramTypeId, this.classProgramType, this.classType, this.productId, this.maxStudents, this.startDate, this.endDate, this.zoomMeetingId, this.zoomPassword, this.description, this.zoomHostVideo, this.zoomParticipantVideo, this.zoomJoinBeforeHost, this.zoomMuteUponEntry, this.zoomAutoRecording, this.classUsers, this.assignExams, this.classSessions, }); factory ClassEntity.fromJson(Map json) => _$ClassEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'academicYearId', includeIfNull: true) int? academicYearId; @JsonKey( name: 'status', includeIfNull: true, toJson: classStatusEnumToJson, fromJson: classStatusEnumFromJson) enums.ClassStatusEnum? status; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'classProgramTypeId', includeIfNull: true) int? classProgramTypeId; @JsonKey(name: 'classProgramType', includeIfNull: true) ClassProgramTypeEntity? classProgramType; @JsonKey( name: 'classType', includeIfNull: true, toJson: classTypeEnumToJson, fromJson: classTypeEnumFromJson) enums.ClassTypeEnum? classType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'maxStudents', includeIfNull: true) int? maxStudents; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'zoomMeetingId', includeIfNull: true) String? zoomMeetingId; @JsonKey(name: 'zoomPassword', includeIfNull: true) String? zoomPassword; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'zoomHostVideo', includeIfNull: true) bool? zoomHostVideo; @JsonKey(name: 'zoomParticipantVideo', includeIfNull: true) bool? zoomParticipantVideo; @JsonKey(name: 'zoomJoinBeforeHost', includeIfNull: true) bool? zoomJoinBeforeHost; @JsonKey(name: 'zoomMuteUponEntry', includeIfNull: true) bool? zoomMuteUponEntry; @JsonKey(name: 'zoomAutoRecording', includeIfNull: true) String? zoomAutoRecording; @JsonKey( name: 'classUsers', includeIfNull: true, defaultValue: []) List? classUsers; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; @JsonKey( name: 'classSessions', includeIfNull: true, defaultValue: []) List? classSessions; static const fromJsonFactory = _$ClassEntityFromJson; static const toJsonFactory = _$ClassEntityToJson; Map toJson() => _$ClassEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ClassGetListFilter { ClassGetListFilter({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.schoolId, this.academicYearId, this.status, this.isGetAll, this.userId, this.grade, this.searchType, }); factory ClassGetListFilter.fromJson(Map json) => _$ClassGetListFilterFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'academicYearId', includeIfNull: true) int? academicYearId; @JsonKey( name: 'status', includeIfNull: true, toJson: classStatusEnumToJson, fromJson: classStatusEnumFromJson) enums.ClassStatusEnum? status; @JsonKey(name: 'isGetAll', includeIfNull: true) bool? isGetAll; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey( name: 'searchType', includeIfNull: true, toJson: classListSearchTypeEnumToJson, fromJson: classListSearchTypeEnumFromJson) enums.ClassListSearchTypeEnum? searchType; static const fromJsonFactory = _$ClassGetListFilterFromJson; static const toJsonFactory = _$ClassGetListFilterToJson; Map toJson() => _$ClassGetListFilterToJson(this); } @JsonSerializable(explicitToJson: true) class ClassLevel { ClassLevel({ this.id, this.grade, this.name, this.subjects, }); factory ClassLevel.fromJson(Map json) => _$ClassLevelFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'subjects', includeIfNull: true, defaultValue: []) List? subjects; static const fromJsonFactory = _$ClassLevelFromJson; static const toJsonFactory = _$ClassLevelToJson; Map toJson() => _$ClassLevelToJson(this); } @JsonSerializable(explicitToJson: true) class ClassListDto { ClassListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.schoolId, this.academicYearId, this.status, this.grade, this.classProgramTypeId, this.classProgramType, this.classType, this.productId, this.maxStudents, this.startDate, this.endDate, this.zoomMeetingId, this.zoomPassword, this.description, this.zoomHostVideo, this.zoomParticipantVideo, this.zoomJoinBeforeHost, this.zoomMuteUponEntry, this.zoomAutoRecording, this.classUsers, this.assignExams, this.classSessions, this.countPupil, this.countExercise, this.countTest, this.countNeedMark, this.testAverageScore, this.studentCountTest, this.studentCountTestDone, this.currentRole, this.isManager, this.schoolName, this.subject, }); factory ClassListDto.fromJson(Map json) => _$ClassListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'academicYearId', includeIfNull: true) int? academicYearId; @JsonKey( name: 'status', includeIfNull: true, toJson: classStatusEnumToJson, fromJson: classStatusEnumFromJson) enums.ClassStatusEnum? status; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'classProgramTypeId', includeIfNull: true) int? classProgramTypeId; @JsonKey(name: 'classProgramType', includeIfNull: true) ClassProgramTypeEntity? classProgramType; @JsonKey( name: 'classType', includeIfNull: true, toJson: classTypeEnumToJson, fromJson: classTypeEnumFromJson) enums.ClassTypeEnum? classType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'maxStudents', includeIfNull: true) int? maxStudents; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey(name: 'zoomMeetingId', includeIfNull: true) String? zoomMeetingId; @JsonKey(name: 'zoomPassword', includeIfNull: true) String? zoomPassword; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'zoomHostVideo', includeIfNull: true) bool? zoomHostVideo; @JsonKey(name: 'zoomParticipantVideo', includeIfNull: true) bool? zoomParticipantVideo; @JsonKey(name: 'zoomJoinBeforeHost', includeIfNull: true) bool? zoomJoinBeforeHost; @JsonKey(name: 'zoomMuteUponEntry', includeIfNull: true) bool? zoomMuteUponEntry; @JsonKey(name: 'zoomAutoRecording', includeIfNull: true) String? zoomAutoRecording; @JsonKey( name: 'classUsers', includeIfNull: true, defaultValue: []) List? classUsers; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; @JsonKey( name: 'classSessions', includeIfNull: true, defaultValue: []) List? classSessions; @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countExercise', includeIfNull: true) int? countExercise; @JsonKey(name: 'countTest', includeIfNull: true) int? countTest; @JsonKey(name: 'countNeedMark', includeIfNull: true) int? countNeedMark; @JsonKey(name: 'testAverageScore', includeIfNull: true) double? testAverageScore; @JsonKey(name: 'studentCountTest', includeIfNull: true) int? studentCountTest; @JsonKey(name: 'studentCountTestDone', includeIfNull: true) int? studentCountTestDone; @JsonKey( name: 'currentRole', includeIfNull: true, toJson: classUserRoleEnumToJson, fromJson: classUserRoleEnumFromJson) enums.ClassUserRoleEnum? currentRole; @JsonKey(name: 'isManager', includeIfNull: true) bool? isManager; @JsonKey(name: 'schoolName', includeIfNull: true) String? schoolName; @JsonKey(name: 'subject', includeIfNull: true) String? subject; static const fromJsonFactory = _$ClassListDtoFromJson; static const toJsonFactory = _$ClassListDtoToJson; Map toJson() => _$ClassListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassListDtoFilterResult { ClassListDtoFilterResult({ this.totalRows, this.data, }); factory ClassListDtoFilterResult.fromJson(Map json) => _$ClassListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ClassListDtoFilterResultFromJson; static const toJsonFactory = _$ClassListDtoFilterResultToJson; Map toJson() => _$ClassListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ClassListOfSchoolDto { ClassListOfSchoolDto({ this.id, this.name, this.grade, this.countPupil, this.countTeacher, this.countExam, this.countNeedMark, this.testAverageScore, }); factory ClassListOfSchoolDto.fromJson(Map json) => _$ClassListOfSchoolDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countTeacher', includeIfNull: true) int? countTeacher; @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; @JsonKey(name: 'countNeedMark', includeIfNull: true) int? countNeedMark; @JsonKey(name: 'testAverageScore', includeIfNull: true) double? testAverageScore; static const fromJsonFactory = _$ClassListOfSchoolDtoFromJson; static const toJsonFactory = _$ClassListOfSchoolDtoToJson; Map toJson() => _$ClassListOfSchoolDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassListOfSchoolDtoFilterResult { ClassListOfSchoolDtoFilterResult({ this.totalRows, this.data, }); factory ClassListOfSchoolDtoFilterResult.fromJson( Map json) => _$ClassListOfSchoolDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ClassListOfSchoolDtoFilterResultFromJson; static const toJsonFactory = _$ClassListOfSchoolDtoFilterResultToJson; Map toJson() => _$ClassListOfSchoolDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ClassListOfSchoolFilter { ClassListOfSchoolFilter({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.schoolId, this.keyword, this.grade, }); factory ClassListOfSchoolFilter.fromJson(Map json) => _$ClassListOfSchoolFilterFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'grade', includeIfNull: true) int? grade; static const fromJsonFactory = _$ClassListOfSchoolFilterFromJson; static const toJsonFactory = _$ClassListOfSchoolFilterToJson; Map toJson() => _$ClassListOfSchoolFilterToJson(this); } @JsonSerializable(explicitToJson: true) class ClassProgramTypeEntity { ClassProgramTypeEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.schoolId, this.description, }); factory ClassProgramTypeEntity.fromJson(Map json) => _$ClassProgramTypeEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'description', includeIfNull: true) String? description; static const fromJsonFactory = _$ClassProgramTypeEntityFromJson; static const toJsonFactory = _$ClassProgramTypeEntityToJson; Map toJson() => _$ClassProgramTypeEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ClassProgramTypeEntityApiResponse { ClassProgramTypeEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ClassProgramTypeEntityApiResponse.fromJson( Map json) => _$ClassProgramTypeEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ClassProgramTypeEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ClassProgramTypeEntityApiResponseFromJson; static const toJsonFactory = _$ClassProgramTypeEntityApiResponseToJson; Map toJson() => _$ClassProgramTypeEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ClassProgramTypeEntityListApiResponse { ClassProgramTypeEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory ClassProgramTypeEntityListApiResponse.fromJson( Map json) => _$ClassProgramTypeEntityListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ClassProgramTypeEntityListApiResponseFromJson; static const toJsonFactory = _$ClassProgramTypeEntityListApiResponseToJson; Map toJson() => _$ClassProgramTypeEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ClassPupilDto { ClassPupilDto({ this.id, this.name, this.countExamNeedDo, this.countUser, }); factory ClassPupilDto.fromJson(Map json) => _$ClassPupilDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'countExamNeedDo', includeIfNull: true) int? countExamNeedDo; @JsonKey(name: 'countUser', includeIfNull: true) int? countUser; static const fromJsonFactory = _$ClassPupilDtoFromJson; static const toJsonFactory = _$ClassPupilDtoToJson; Map toJson() => _$ClassPupilDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassPupilStatisticalDto { ClassPupilStatisticalDto({ this.userId, this.avatar, this.fullName, this.fullNameNonAccent, this.joinDate, this.percentHomeWorkDone, this.countExam, this.averageScoreExam, this.averageScoreTest, }); factory ClassPupilStatisticalDto.fromJson(Map json) => _$ClassPupilStatisticalDtoFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'fullNameNonAccent', includeIfNull: true) String? fullNameNonAccent; @JsonKey(name: 'joinDate', includeIfNull: true) DateTime? joinDate; @JsonKey(name: 'percentHomeWorkDone', includeIfNull: true) double? percentHomeWorkDone; @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; @JsonKey(name: 'averageScoreExam', includeIfNull: true) double? averageScoreExam; @JsonKey(name: 'averageScoreTest', includeIfNull: true) double? averageScoreTest; static const fromJsonFactory = _$ClassPupilStatisticalDtoFromJson; static const toJsonFactory = _$ClassPupilStatisticalDtoToJson; Map toJson() => _$ClassPupilStatisticalDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassPupilStatisticalDtoFilterResult { ClassPupilStatisticalDtoFilterResult({ this.totalRows, this.data, }); factory ClassPupilStatisticalDtoFilterResult.fromJson( Map json) => _$ClassPupilStatisticalDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ClassPupilStatisticalDtoFilterResultFromJson; static const toJsonFactory = _$ClassPupilStatisticalDtoFilterResultToJson; Map toJson() => _$ClassPupilStatisticalDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ClassPupilStatisticalFilter { ClassPupilStatisticalFilter({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.classId, this.keyword, this.subjectId, }); factory ClassPupilStatisticalFilter.fromJson(Map json) => _$ClassPupilStatisticalFilterFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; static const fromJsonFactory = _$ClassPupilStatisticalFilterFromJson; static const toJsonFactory = _$ClassPupilStatisticalFilterToJson; Map toJson() => _$ClassPupilStatisticalFilterToJson(this); } @JsonSerializable(explicitToJson: true) class ClassRemoveUserCommand { ClassRemoveUserCommand({ this.userId, this.classId, }); factory ClassRemoveUserCommand.fromJson(Map json) => _$ClassRemoveUserCommandFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'classId', includeIfNull: true) int? classId; static const fromJsonFactory = _$ClassRemoveUserCommandFromJson; static const toJsonFactory = _$ClassRemoveUserCommandToJson; Map toJson() => _$ClassRemoveUserCommandToJson(this); } @JsonSerializable(explicitToJson: true) class ClassSessionEntity { ClassSessionEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.classId, this.productLessonId, this.sessionNumber, this.sessionName, this.description, this.startTime, this.endTime, this.zoomMeetingId, this.zoomJoinLink, this.zoomStartLink, this.zoomPassword, this.recordingUrl, this.zoomAccountIndex, this.actualDurationMinutes, this.status, this.notes, this.$class, this.productLesson, this.attendances, }); factory ClassSessionEntity.fromJson(Map json) => _$ClassSessionEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'productLessonId', includeIfNull: true) int? productLessonId; @JsonKey(name: 'sessionNumber', includeIfNull: true) int? sessionNumber; @JsonKey(name: 'sessionName', includeIfNull: true) String? sessionName; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'startTime', includeIfNull: true) DateTime? startTime; @JsonKey(name: 'endTime', includeIfNull: true) DateTime? endTime; @JsonKey(name: 'zoomMeetingId', includeIfNull: true) String? zoomMeetingId; @JsonKey(name: 'zoomJoinLink', includeIfNull: true) String? zoomJoinLink; @JsonKey(name: 'zoomStartLink', includeIfNull: true) String? zoomStartLink; @JsonKey(name: 'zoomPassword', includeIfNull: true) String? zoomPassword; @JsonKey(name: 'recordingUrl', includeIfNull: true) String? recordingUrl; @JsonKey(name: 'zoomAccountIndex', includeIfNull: true) int? zoomAccountIndex; @JsonKey(name: 'actualDurationMinutes', includeIfNull: true) int? actualDurationMinutes; @JsonKey( name: 'status', includeIfNull: true, toJson: sessionStatusEnumToJson, fromJson: sessionStatusEnumFromJson) enums.SessionStatusEnum? status; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'class', includeIfNull: true) ClassEntity? $class; @JsonKey(name: 'productLesson', includeIfNull: true) ProductLessonEntity? productLesson; @JsonKey( name: 'attendances', includeIfNull: true, defaultValue: []) List? attendances; static const fromJsonFactory = _$ClassSessionEntityFromJson; static const toJsonFactory = _$ClassSessionEntityToJson; Map toJson() => _$ClassSessionEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ClassShortDto { ClassShortDto({ this.id, this.name, this.grade, this.schoolId, this.classUsers, }); factory ClassShortDto.fromJson(Map json) => _$ClassShortDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'grade', includeIfNull: true) String? grade; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey( name: 'classUsers', includeIfNull: true, defaultValue: []) List? classUsers; static const fromJsonFactory = _$ClassShortDtoFromJson; static const toJsonFactory = _$ClassShortDtoToJson; Map toJson() => _$ClassShortDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassStatisticalDto { ClassStatisticalDto({ this.waitingGrading, this.countTeacher, this.countPupil, this.countExam, }); factory ClassStatisticalDto.fromJson(Map json) => _$ClassStatisticalDtoFromJson(json); @JsonKey(name: 'waitingGrading', includeIfNull: true) int? waitingGrading; @JsonKey(name: 'countTeacher', includeIfNull: true) int? countTeacher; @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; static const fromJsonFactory = _$ClassStatisticalDtoFromJson; static const toJsonFactory = _$ClassStatisticalDtoToJson; Map toJson() => _$ClassStatisticalDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ClassUserEntity { ClassUserEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.classId, this.role, this.status, this.note, this.subjectIds, this.isManager, }); factory ClassUserEntity.fromJson(Map json) => _$ClassUserEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey( name: 'role', includeIfNull: true, toJson: classUserRoleEnumToJson, fromJson: classUserRoleEnumFromJson) enums.ClassUserRoleEnum? role; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; @JsonKey(name: 'note', includeIfNull: true) String? note; @JsonKey(name: 'subjectIds', includeIfNull: true, defaultValue: []) List? subjectIds; @JsonKey(name: 'isManager', includeIfNull: true) bool? isManager; static const fromJsonFactory = _$ClassUserEntityFromJson; static const toJsonFactory = _$ClassUserEntityToJson; Map toJson() => _$ClassUserEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ClassUserShortDto { ClassUserShortDto({ this.id, this.fullName, this.avatar, }); factory ClassUserShortDto.fromJson(Map json) => _$ClassUserShortDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; static const fromJsonFactory = _$ClassUserShortDtoFromJson; static const toJsonFactory = _$ClassUserShortDtoToJson; Map toJson() => _$ClassUserShortDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationEntity { ConsultationRegistrationEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.phone, this.email, this.message, this.planType, this.productId, this.status, this.adminNote, this.contactedDate, this.contactedBy, }); factory ConsultationRegistrationEntity.fromJson(Map json) => _$ConsultationRegistrationEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'planType', includeIfNull: true) String? planType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey( name: 'status', includeIfNull: true, toJson: consultationStatusEnumToJson, fromJson: consultationStatusEnumFromJson) enums.ConsultationStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; @JsonKey(name: 'contactedDate', includeIfNull: true) DateTime? contactedDate; @JsonKey(name: 'contactedBy', includeIfNull: true) int? contactedBy; static const fromJsonFactory = _$ConsultationRegistrationEntityFromJson; static const toJsonFactory = _$ConsultationRegistrationEntityToJson; Map toJson() => _$ConsultationRegistrationEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationEntityApiResponse { ConsultationRegistrationEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ConsultationRegistrationEntityApiResponse.fromJson( Map json) => _$ConsultationRegistrationEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ConsultationRegistrationEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ConsultationRegistrationEntityApiResponseFromJson; static const toJsonFactory = _$ConsultationRegistrationEntityApiResponseToJson; Map toJson() => _$ConsultationRegistrationEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationGetListQuery { ConsultationRegistrationGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.status, this.planType, this.fromDate, this.toDate, }); factory ConsultationRegistrationGetListQuery.fromJson( Map json) => _$ConsultationRegistrationGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'status', includeIfNull: true, toJson: consultationStatusEnumToJson, fromJson: consultationStatusEnumFromJson) enums.ConsultationStatusEnum? status; @JsonKey(name: 'planType', includeIfNull: true) String? planType; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; static const fromJsonFactory = _$ConsultationRegistrationGetListQueryFromJson; static const toJsonFactory = _$ConsultationRegistrationGetListQueryToJson; Map toJson() => _$ConsultationRegistrationGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationListDto { ConsultationRegistrationListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.phone, this.email, this.message, this.planType, this.productId, this.status, this.adminNote, this.contactedDate, this.contactedBy, this.productName, this.contactedByName, }); factory ConsultationRegistrationListDto.fromJson(Map json) => _$ConsultationRegistrationListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'planType', includeIfNull: true) String? planType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey( name: 'status', includeIfNull: true, toJson: consultationStatusEnumToJson, fromJson: consultationStatusEnumFromJson) enums.ConsultationStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; @JsonKey(name: 'contactedDate', includeIfNull: true) DateTime? contactedDate; @JsonKey(name: 'contactedBy', includeIfNull: true) int? contactedBy; @JsonKey(name: 'productName', includeIfNull: true) String? productName; @JsonKey(name: 'contactedByName', includeIfNull: true) String? contactedByName; static const fromJsonFactory = _$ConsultationRegistrationListDtoFromJson; static const toJsonFactory = _$ConsultationRegistrationListDtoToJson; Map toJson() => _$ConsultationRegistrationListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationListDtoFilterResult { ConsultationRegistrationListDtoFilterResult({ this.totalRows, this.data, }); factory ConsultationRegistrationListDtoFilterResult.fromJson( Map json) => _$ConsultationRegistrationListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ConsultationRegistrationListDtoFilterResultFromJson; static const toJsonFactory = _$ConsultationRegistrationListDtoFilterResultToJson; Map toJson() => _$ConsultationRegistrationListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationListDtoFilterResultApiResponse { ConsultationRegistrationListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ConsultationRegistrationListDtoFilterResultApiResponse.fromJson( Map json) => _$ConsultationRegistrationListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ConsultationRegistrationListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ConsultationRegistrationListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ConsultationRegistrationListDtoFilterResultApiResponseToJson; Map toJson() => _$ConsultationRegistrationListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationSaveDto { ConsultationRegistrationSaveDto({ this.name, this.phone, this.email, this.message, this.planType, this.productId, }); factory ConsultationRegistrationSaveDto.fromJson(Map json) => _$ConsultationRegistrationSaveDtoFromJson(json); @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'planType', includeIfNull: true) String? planType; @JsonKey(name: 'productId', includeIfNull: true) int? productId; static const fromJsonFactory = _$ConsultationRegistrationSaveDtoFromJson; static const toJsonFactory = _$ConsultationRegistrationSaveDtoToJson; Map toJson() => _$ConsultationRegistrationSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ConsultationRegistrationUpdateStatusRequest { ConsultationRegistrationUpdateStatusRequest({ this.status, this.adminNote, }); factory ConsultationRegistrationUpdateStatusRequest.fromJson( Map json) => _$ConsultationRegistrationUpdateStatusRequestFromJson(json); @JsonKey( name: 'status', includeIfNull: true, toJson: consultationStatusEnumToJson, fromJson: consultationStatusEnumFromJson) enums.ConsultationStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; static const fromJsonFactory = _$ConsultationRegistrationUpdateStatusRequestFromJson; static const toJsonFactory = _$ConsultationRegistrationUpdateStatusRequestToJson; Map toJson() => _$ConsultationRegistrationUpdateStatusRequestToJson(this); } @JsonSerializable(explicitToJson: true) class ContactEntity { ContactEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.fullName, this.phone, this.message, this.status, this.adminNote, this.contactedDate, this.contactedBy, }); factory ContactEntity.fromJson(Map json) => _$ContactEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey( name: 'status', includeIfNull: true, toJson: contactStatusEnumToJson, fromJson: contactStatusEnumFromJson) enums.ContactStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; @JsonKey(name: 'contactedDate', includeIfNull: true) DateTime? contactedDate; @JsonKey(name: 'contactedBy', includeIfNull: true) int? contactedBy; static const fromJsonFactory = _$ContactEntityFromJson; static const toJsonFactory = _$ContactEntityToJson; Map toJson() => _$ContactEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ContactEntityApiResponse { ContactEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ContactEntityApiResponse.fromJson(Map json) => _$ContactEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ContactEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ContactEntityApiResponseFromJson; static const toJsonFactory = _$ContactEntityApiResponseToJson; Map toJson() => _$ContactEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ContactGetListQuery { ContactGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.status, this.fromDate, this.toDate, }); factory ContactGetListQuery.fromJson(Map json) => _$ContactGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'status', includeIfNull: true, toJson: contactStatusEnumToJson, fromJson: contactStatusEnumFromJson) enums.ContactStatusEnum? status; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; static const fromJsonFactory = _$ContactGetListQueryFromJson; static const toJsonFactory = _$ContactGetListQueryToJson; Map toJson() => _$ContactGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ContactListDto { ContactListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.fullName, this.phone, this.message, this.status, this.adminNote, this.contactedDate, this.contactedBy, this.contactedByName, }); factory ContactListDto.fromJson(Map json) => _$ContactListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey( name: 'status', includeIfNull: true, toJson: contactStatusEnumToJson, fromJson: contactStatusEnumFromJson) enums.ContactStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; @JsonKey(name: 'contactedDate', includeIfNull: true) DateTime? contactedDate; @JsonKey(name: 'contactedBy', includeIfNull: true) int? contactedBy; @JsonKey(name: 'contactedByName', includeIfNull: true) String? contactedByName; static const fromJsonFactory = _$ContactListDtoFromJson; static const toJsonFactory = _$ContactListDtoToJson; Map toJson() => _$ContactListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ContactListDtoFilterResult { ContactListDtoFilterResult({ this.totalRows, this.data, }); factory ContactListDtoFilterResult.fromJson(Map json) => _$ContactListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ContactListDtoFilterResultFromJson; static const toJsonFactory = _$ContactListDtoFilterResultToJson; Map toJson() => _$ContactListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ContactListDtoFilterResultApiResponse { ContactListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ContactListDtoFilterResultApiResponse.fromJson( Map json) => _$ContactListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ContactListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ContactListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ContactListDtoFilterResultApiResponseToJson; Map toJson() => _$ContactListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ContactSaveDto { ContactSaveDto({ this.fullName, this.phone, this.message, }); factory ContactSaveDto.fromJson(Map json) => _$ContactSaveDtoFromJson(json); @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'message', includeIfNull: true) String? message; static const fromJsonFactory = _$ContactSaveDtoFromJson; static const toJsonFactory = _$ContactSaveDtoToJson; Map toJson() => _$ContactSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ContactUpdateStatusRequest { ContactUpdateStatusRequest({ this.status, this.adminNote, }); factory ContactUpdateStatusRequest.fromJson(Map json) => _$ContactUpdateStatusRequestFromJson(json); @JsonKey( name: 'status', includeIfNull: true, toJson: contactStatusEnumToJson, fromJson: contactStatusEnumFromJson) enums.ContactStatusEnum? status; @JsonKey(name: 'adminNote', includeIfNull: true) String? adminNote; static const fromJsonFactory = _$ContactUpdateStatusRequestFromJson; static const toJsonFactory = _$ContactUpdateStatusRequestToJson; Map toJson() => _$ContactUpdateStatusRequestToJson(this); } @JsonSerializable(explicitToJson: true) class CreateChatGroupDto { CreateChatGroupDto({ this.userIds, this.name, this.type, this.documentId, }); factory CreateChatGroupDto.fromJson(Map json) => _$CreateChatGroupDtoFromJson(json); @JsonKey(name: 'userIds', includeIfNull: true, defaultValue: []) List? userIds; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'documentId', includeIfNull: true) int? documentId; static const fromJsonFactory = _$CreateChatGroupDtoFromJson; static const toJsonFactory = _$CreateChatGroupDtoToJson; Map toJson() => _$CreateChatGroupDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CurrentObjectDto { CurrentObjectDto({ this.id, this.type, this.name, }); factory CurrentObjectDto.fromJson(Map json) => _$CurrentObjectDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'name', includeIfNull: true) String? name; static const fromJsonFactory = _$CurrentObjectDtoFromJson; static const toJsonFactory = _$CurrentObjectDtoToJson; Map toJson() => _$CurrentObjectDtoToJson(this); } @JsonSerializable(explicitToJson: true) class CurrentObjectDtoApiResponse { CurrentObjectDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory CurrentObjectDtoApiResponse.fromJson(Map json) => _$CurrentObjectDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) CurrentObjectDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$CurrentObjectDtoApiResponseFromJson; static const toJsonFactory = _$CurrentObjectDtoApiResponseToJson; Map toJson() => _$CurrentObjectDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DNTCaptchaApiResponse { DNTCaptchaApiResponse({ this.dntCaptchaImgUrl, this.dntCaptchaId, this.dntCaptchaTextValue, this.dntCaptchaTokenValue, }); factory DNTCaptchaApiResponse.fromJson(Map json) => _$DNTCaptchaApiResponseFromJson(json); @JsonKey(name: 'dntCaptchaImgUrl', includeIfNull: true) String? dntCaptchaImgUrl; @JsonKey(name: 'dntCaptchaId', includeIfNull: true) String? dntCaptchaId; @JsonKey(name: 'dntCaptchaTextValue', includeIfNull: true) String? dntCaptchaTextValue; @JsonKey(name: 'dntCaptchaTokenValue', includeIfNull: true) String? dntCaptchaTokenValue; static const fromJsonFactory = _$DNTCaptchaApiResponseFromJson; static const toJsonFactory = _$DNTCaptchaApiResponseToJson; Map toJson() => _$DNTCaptchaApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardClassStatisticalDto { DashBoardClassStatisticalDto({ this.id, this.name, this.totalStudent, this.totalExamNeedMark, }); factory DashBoardClassStatisticalDto.fromJson(Map json) => _$DashBoardClassStatisticalDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'totalStudent', includeIfNull: true) int? totalStudent; @JsonKey(name: 'totalExamNeedMark', includeIfNull: true) int? totalExamNeedMark; static const fromJsonFactory = _$DashBoardClassStatisticalDtoFromJson; static const toJsonFactory = _$DashBoardClassStatisticalDtoToJson; Map toJson() => _$DashBoardClassStatisticalDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardClassStatisticalDtoListApiResponse { DashBoardClassStatisticalDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory DashBoardClassStatisticalDtoListApiResponse.fromJson( Map json) => _$DashBoardClassStatisticalDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DashBoardClassStatisticalDtoListApiResponseFromJson; static const toJsonFactory = _$DashBoardClassStatisticalDtoListApiResponseToJson; Map toJson() => _$DashBoardClassStatisticalDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardExamListDto { DashBoardExamListDto({ this.id, this.title, this.status, this.createdDate, }); factory DashBoardExamListDto.fromJson(Map json) => _$DashBoardExamListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; static const fromJsonFactory = _$DashBoardExamListDtoFromJson; static const toJsonFactory = _$DashBoardExamListDtoToJson; Map toJson() => _$DashBoardExamListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardExamListDtoListApiResponse { DashBoardExamListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory DashBoardExamListDtoListApiResponse.fromJson( Map json) => _$DashBoardExamListDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DashBoardExamListDtoListApiResponseFromJson; static const toJsonFactory = _$DashBoardExamListDtoListApiResponseToJson; Map toJson() => _$DashBoardExamListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardPupilListDto { DashBoardPupilListDto({ this.userId, this.avatar, this.fullName, this.countExam, this.countExamDone, this.classId, this.className, this.percentDone, }); factory DashBoardPupilListDto.fromJson(Map json) => _$DashBoardPupilListDtoFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; @JsonKey(name: 'countExamDone', includeIfNull: true) int? countExamDone; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'className', includeIfNull: true) String? className; @JsonKey(name: 'percentDone', includeIfNull: true) double? percentDone; static const fromJsonFactory = _$DashBoardPupilListDtoFromJson; static const toJsonFactory = _$DashBoardPupilListDtoToJson; Map toJson() => _$DashBoardPupilListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardPupilListDtoListApiResponse { DashBoardPupilListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory DashBoardPupilListDtoListApiResponse.fromJson( Map json) => _$DashBoardPupilListDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DashBoardPupilListDtoListApiResponseFromJson; static const toJsonFactory = _$DashBoardPupilListDtoListApiResponseToJson; Map toJson() => _$DashBoardPupilListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardQuestionListDto { DashBoardQuestionListDto({ this.id, this.type, this.classLevel, this.subjectId, this.level, }); factory DashBoardQuestionListDto.fromJson(Map json) => _$DashBoardQuestionListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'level', includeIfNull: true, toJson: questionLevelEnumToJson, fromJson: questionLevelEnumFromJson) enums.QuestionLevelEnum? level; static const fromJsonFactory = _$DashBoardQuestionListDtoFromJson; static const toJsonFactory = _$DashBoardQuestionListDtoToJson; Map toJson() => _$DashBoardQuestionListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DashBoardQuestionListDtoListApiResponse { DashBoardQuestionListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory DashBoardQuestionListDtoListApiResponse.fromJson( Map json) => _$DashBoardQuestionListDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DashBoardQuestionListDtoListApiResponseFromJson; static const toJsonFactory = _$DashBoardQuestionListDtoListApiResponseToJson; Map toJson() => _$DashBoardQuestionListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DeparmentGetManagerPositionDto { DeparmentGetManagerPositionDto({ this.name, this.provinceId, }); factory DeparmentGetManagerPositionDto.fromJson(Map json) => _$DeparmentGetManagerPositionDtoFromJson(json); @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; static const fromJsonFactory = _$DeparmentGetManagerPositionDtoFromJson; static const toJsonFactory = _$DeparmentGetManagerPositionDtoToJson; Map toJson() => _$DeparmentGetManagerPositionDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentCountDto { DepartmentCountDto({ this.schoolCount, this.teacherCount, this.studentCount, this.classCount, }); factory DepartmentCountDto.fromJson(Map json) => _$DepartmentCountDtoFromJson(json); @JsonKey(name: 'schoolCount', includeIfNull: true) int? schoolCount; @JsonKey(name: 'teacherCount', includeIfNull: true) int? teacherCount; @JsonKey(name: 'studentCount', includeIfNull: true) int? studentCount; @JsonKey(name: 'classCount', includeIfNull: true) int? classCount; static const fromJsonFactory = _$DepartmentCountDtoFromJson; static const toJsonFactory = _$DepartmentCountDtoToJson; Map toJson() => _$DepartmentCountDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentCountDtoApiResponse { DepartmentCountDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory DepartmentCountDtoApiResponse.fromJson(Map json) => _$DepartmentCountDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) DepartmentCountDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DepartmentCountDtoApiResponseFromJson; static const toJsonFactory = _$DepartmentCountDtoApiResponseToJson; Map toJson() => _$DepartmentCountDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentCountQuery { DepartmentCountQuery({ this.fromDate, this.toDate, }); factory DepartmentCountQuery.fromJson(Map json) => _$DepartmentCountQueryFromJson(json); @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; static const fromJsonFactory = _$DepartmentCountQueryFromJson; static const toJsonFactory = _$DepartmentCountQueryToJson; Map toJson() => _$DepartmentCountQueryToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentDto { DepartmentDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.fullName, this.otherName, this.url, this.unitType, this.parentId, this.priority, this.type, this.status, this.officeCount, this.schoolCount, this.schoolActiveCount, }); factory DepartmentDto.fromJson(Map json) => _$DepartmentDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'otherName', includeIfNull: true) String? otherName; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'unitType', includeIfNull: true) String? unitType; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'priority', includeIfNull: true) int? priority; @JsonKey( name: 'type', includeIfNull: true, toJson: localityTypeEnumToJson, fromJson: localityTypeEnumFromJson) enums.LocalityTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: localityStatusEnumToJson, fromJson: localityStatusEnumFromJson) enums.LocalityStatusEnum? status; @JsonKey(name: 'officeCount', includeIfNull: true) int? officeCount; @JsonKey(name: 'schoolCount', includeIfNull: true) int? schoolCount; @JsonKey(name: 'schoolActiveCount', includeIfNull: true) int? schoolActiveCount; static const fromJsonFactory = _$DepartmentDtoFromJson; static const toJsonFactory = _$DepartmentDtoToJson; Map toJson() => _$DepartmentDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentDtoFilterResult { DepartmentDtoFilterResult({ this.totalRows, this.data, }); factory DepartmentDtoFilterResult.fromJson(Map json) => _$DepartmentDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$DepartmentDtoFilterResultFromJson; static const toJsonFactory = _$DepartmentDtoFilterResultToJson; Map toJson() => _$DepartmentDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentDtoFilterResultApiResponse { DepartmentDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory DepartmentDtoFilterResultApiResponse.fromJson( Map json) => _$DepartmentDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) DepartmentDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DepartmentDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$DepartmentDtoFilterResultApiResponseToJson; Map toJson() => _$DepartmentDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentGetListQuery { DepartmentGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, }); factory DepartmentGetListQuery.fromJson(Map json) => _$DepartmentGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; static const fromJsonFactory = _$DepartmentGetListQueryFromJson; static const toJsonFactory = _$DepartmentGetListQueryToJson; Map toJson() => _$DepartmentGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentSchoolFilterDto { DepartmentSchoolFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.fromDate, this.toDate, this.keyword, this.type, this.provinceId, this.districtId, this.status, }); factory DepartmentSchoolFilterDto.fromJson(Map json) => _$DepartmentSchoolFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'fromDate', includeIfNull: true) DateTime? fromDate; @JsonKey(name: 'toDate', includeIfNull: true) DateTime? toDate; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'districtId', includeIfNull: true) int? districtId; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; static const fromJsonFactory = _$DepartmentSchoolFilterDtoFromJson; static const toJsonFactory = _$DepartmentSchoolFilterDtoToJson; Map toJson() => _$DepartmentSchoolFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentSchoolListDto { DepartmentSchoolListDto({ this.id, this.name, this.type, this.provinceId, this.averageAssignmentsPerTeacher, this.averageAssignmentsPerStudent, this.provinceName, this.districtId, this.districtName, this.status, }); factory DepartmentSchoolListDto.fromJson(Map json) => _$DepartmentSchoolListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'averageAssignmentsPerTeacher', includeIfNull: true) double? averageAssignmentsPerTeacher; @JsonKey(name: 'averageAssignmentsPerStudent', includeIfNull: true) double? averageAssignmentsPerStudent; @JsonKey(name: 'provinceName', includeIfNull: true) String? provinceName; @JsonKey(name: 'districtId', includeIfNull: true) int? districtId; @JsonKey(name: 'districtName', includeIfNull: true) String? districtName; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; static const fromJsonFactory = _$DepartmentSchoolListDtoFromJson; static const toJsonFactory = _$DepartmentSchoolListDtoToJson; Map toJson() => _$DepartmentSchoolListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentSchoolListDtoFilterResult { DepartmentSchoolListDtoFilterResult({ this.totalRows, this.data, }); factory DepartmentSchoolListDtoFilterResult.fromJson( Map json) => _$DepartmentSchoolListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$DepartmentSchoolListDtoFilterResultFromJson; static const toJsonFactory = _$DepartmentSchoolListDtoFilterResultToJson; Map toJson() => _$DepartmentSchoolListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class DepartmentSchoolListDtoFilterResultApiResponse { DepartmentSchoolListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory DepartmentSchoolListDtoFilterResultApiResponse.fromJson( Map json) => _$DepartmentSchoolListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) DepartmentSchoolListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DepartmentSchoolListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$DepartmentSchoolListDtoFilterResultApiResponseToJson; Map toJson() => _$DepartmentSchoolListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class Disable2FADto { Disable2FADto({ this.code, }); factory Disable2FADto.fromJson(Map json) => _$Disable2FADtoFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; static const fromJsonFactory = _$Disable2FADtoFromJson; static const toJsonFactory = _$Disable2FADtoToJson; Map toJson() => _$Disable2FADtoToJson(this); } @JsonSerializable(explicitToJson: true) class DocumentFileInfo { DocumentFileInfo({ this.fileName, this.displayName, this.size, this.lineCount, this.lastModified, this.exists, }); factory DocumentFileInfo.fromJson(Map json) => _$DocumentFileInfoFromJson(json); @JsonKey(name: 'fileName', includeIfNull: true) String? fileName; @JsonKey(name: 'displayName', includeIfNull: true) String? displayName; @JsonKey(name: 'size', includeIfNull: true) int? size; @JsonKey(name: 'lineCount', includeIfNull: true) int? lineCount; @JsonKey(name: 'lastModified', includeIfNull: true) DateTime? lastModified; @JsonKey(name: 'exists', includeIfNull: true) bool? exists; static const fromJsonFactory = _$DocumentFileInfoFromJson; static const toJsonFactory = _$DocumentFileInfoToJson; Map toJson() => _$DocumentFileInfoToJson(this); } @JsonSerializable(explicitToJson: true) class DocumentInfo { DocumentInfo({ this.files, this.totalFiles, this.existingFiles, this.totalSize, this.lastUpdated, }); factory DocumentInfo.fromJson(Map json) => _$DocumentInfoFromJson(json); @JsonKey( name: 'files', includeIfNull: true, defaultValue: []) List? files; @JsonKey(name: 'totalFiles', includeIfNull: true) int? totalFiles; @JsonKey(name: 'existingFiles', includeIfNull: true) int? existingFiles; @JsonKey(name: 'totalSize', includeIfNull: true) int? totalSize; @JsonKey(name: 'lastUpdated', includeIfNull: true) DateTime? lastUpdated; static const fromJsonFactory = _$DocumentInfoFromJson; static const toJsonFactory = _$DocumentInfoToJson; Map toJson() => _$DocumentInfoToJson(this); } @JsonSerializable(explicitToJson: true) class DocumentInfoApiResponse { DocumentInfoApiResponse({ this.data, this.message, this.success, this.code, }); factory DocumentInfoApiResponse.fromJson(Map json) => _$DocumentInfoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) DocumentInfo? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DocumentInfoApiResponseFromJson; static const toJsonFactory = _$DocumentInfoApiResponseToJson; Map toJson() => _$DocumentInfoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DocumentPreviewResponse { DocumentPreviewResponse({ this.fileName, this.displayName, this.previewContent, this.totalLines, this.previewLines, this.hasMore, this.fileSize, }); factory DocumentPreviewResponse.fromJson(Map json) => _$DocumentPreviewResponseFromJson(json); @JsonKey(name: 'fileName', includeIfNull: true) String? fileName; @JsonKey(name: 'displayName', includeIfNull: true) String? displayName; @JsonKey(name: 'previewContent', includeIfNull: true) String? previewContent; @JsonKey(name: 'totalLines', includeIfNull: true) int? totalLines; @JsonKey(name: 'previewLines', includeIfNull: true) int? previewLines; @JsonKey(name: 'hasMore', includeIfNull: true) bool? hasMore; @JsonKey(name: 'fileSize', includeIfNull: true) int? fileSize; static const fromJsonFactory = _$DocumentPreviewResponseFromJson; static const toJsonFactory = _$DocumentPreviewResponseToJson; Map toJson() => _$DocumentPreviewResponseToJson(this); } @JsonSerializable(explicitToJson: true) class DocumentPreviewResponseApiResponse { DocumentPreviewResponseApiResponse({ this.data, this.message, this.success, this.code, }); factory DocumentPreviewResponseApiResponse.fromJson( Map json) => _$DocumentPreviewResponseApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) DocumentPreviewResponse? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$DocumentPreviewResponseApiResponseFromJson; static const toJsonFactory = _$DocumentPreviewResponseApiResponseToJson; Map toJson() => _$DocumentPreviewResponseApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class Enable2FADto { Enable2FADto({ this.code, }); factory Enable2FADto.fromJson(Map json) => _$Enable2FADtoFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; static const fromJsonFactory = _$Enable2FADtoFromJson; static const toJsonFactory = _$Enable2FADtoToJson; Map toJson() => _$Enable2FADtoToJson(this); } @JsonSerializable(explicitToJson: true) class Enum { Enum(); factory Enum.fromJson(Map json) => _$EnumFromJson(json); static const fromJsonFactory = _$EnumFromJson; static const toJsonFactory = _$EnumToJson; Map toJson() => _$EnumToJson(this); } @JsonSerializable(explicitToJson: true) class EnumItemEntity { EnumItemEntity({ this.id, this.name, this.code, }); factory EnumItemEntity.fromJson(Map json) => _$EnumItemEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'code', includeIfNull: true) String? code; static const fromJsonFactory = _$EnumItemEntityFromJson; static const toJsonFactory = _$EnumItemEntityToJson; Map toJson() => _$EnumItemEntityToJson(this); } @JsonSerializable(explicitToJson: true) class EnumListEntity { EnumListEntity({ this.value, this.code, this.name, this.isZone, this.permissions, }); factory EnumListEntity.fromJson(Map json) => _$EnumListEntityFromJson(json); @JsonKey(name: 'value', includeIfNull: true) int? value; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'isZone', includeIfNull: true) bool? isZone; @JsonKey( name: 'permissions', includeIfNull: true, defaultValue: []) List? permissions; static const fromJsonFactory = _$EnumListEntityFromJson; static const toJsonFactory = _$EnumListEntityToJson; Map toJson() => _$EnumListEntityToJson(this); } @JsonSerializable(explicitToJson: true) class EnumListEntityListApiResponse { EnumListEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory EnumListEntityListApiResponse.fromJson(Map json) => _$EnumListEntityListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$EnumListEntityListApiResponseFromJson; static const toJsonFactory = _$EnumListEntityListApiResponseToJson; Map toJson() => _$EnumListEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class EssaySuggestionMarkDto { EssaySuggestionMarkDto({ this.categoryId, this.grade, this.result, this.content, this.mark, this.images, }); factory EssaySuggestionMarkDto.fromJson(Map json) => _$EssaySuggestionMarkDtoFromJson(json); @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'result', includeIfNull: true) String? result; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'images', includeIfNull: true, defaultValue: []) List? images; static const fromJsonFactory = _$EssaySuggestionMarkDtoFromJson; static const toJsonFactory = _$EssaySuggestionMarkDtoToJson; Map toJson() => _$EssaySuggestionMarkDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDataBeforeDeleteDto { ExamDataBeforeDeleteDto({ this.countPupil, this.countPupilDone, }); factory ExamDataBeforeDeleteDto.fromJson(Map json) => _$ExamDataBeforeDeleteDtoFromJson(json); @JsonKey(name: 'countPupil', includeIfNull: true) int? countPupil; @JsonKey(name: 'countPupilDone', includeIfNull: true) int? countPupilDone; static const fromJsonFactory = _$ExamDataBeforeDeleteDtoFromJson; static const toJsonFactory = _$ExamDataBeforeDeleteDtoToJson; Map toJson() => _$ExamDataBeforeDeleteDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDataBeforeDeleteDtoApiResponse { ExamDataBeforeDeleteDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ExamDataBeforeDeleteDtoApiResponse.fromJson( Map json) => _$ExamDataBeforeDeleteDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ExamDataBeforeDeleteDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ExamDataBeforeDeleteDtoApiResponseFromJson; static const toJsonFactory = _$ExamDataBeforeDeleteDtoApiResponseToJson; Map toJson() => _$ExamDataBeforeDeleteDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDataDto { ExamDataDto({ this.parts, }); factory ExamDataDto.fromJson(Map json) => _$ExamDataDtoFromJson(json); @JsonKey(name: 'parts', includeIfNull: true, defaultValue: []) List? parts; static const fromJsonFactory = _$ExamDataDtoFromJson; static const toJsonFactory = _$ExamDataDtoToJson; Map toJson() => _$ExamDataDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDataSaveDto { ExamDataSaveDto({ this.parts, }); factory ExamDataSaveDto.fromJson(Map json) => _$ExamDataSaveDtoFromJson(json); @JsonKey( name: 'parts', includeIfNull: true, defaultValue: []) List? parts; static const fromJsonFactory = _$ExamDataSaveDtoFromJson; static const toJsonFactory = _$ExamDataSaveDtoToJson; Map toJson() => _$ExamDataSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDto { ExamDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.avatar, this.duration, this.type, this.status, this.totalMark, this.totalQuestion, this.schoolId, this.classLevel, this.subjectId, this.format, this.fileUrl, this.data, this.categoryId, this.isSystem, this.isAutoScoring, this.fileChoiceType, this.questions, this.assignExams, this.tagIds, this.tags, this.canEdit, }); factory ExamDto.fromJson(Map json) => _$ExamDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'data', includeIfNull: true) ExamDataDto? data; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'isAutoScoring', includeIfNull: true) bool? isAutoScoring; @JsonKey( name: 'fileChoiceType', includeIfNull: true, toJson: examFileChoiceTypeEnumToJson, fromJson: examFileChoiceTypeEnumFromJson) enums.ExamFileChoiceTypeEnum? fileChoiceType; @JsonKey( name: 'questions', includeIfNull: true, defaultValue: []) List? questions; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; @JsonKey(name: 'tags', includeIfNull: true, defaultValue: []) List? tags; @JsonKey(name: 'canEdit', includeIfNull: true) bool? canEdit; static const fromJsonFactory = _$ExamDtoFromJson; static const toJsonFactory = _$ExamDtoToJson; Map toJson() => _$ExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamDtoApiResponse { ExamDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ExamDtoApiResponse.fromJson(Map json) => _$ExamDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ExamDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ExamDtoApiResponseFromJson; static const toJsonFactory = _$ExamDtoApiResponseToJson; Map toJson() => _$ExamDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ExamFileSaveDto { ExamFileSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.avatar, this.duration, this.type, this.status, this.totalMark, this.totalQuestion, this.schoolId, this.classLevel, this.subjectId, this.format, this.fileUrl, this.data, this.categoryId, this.isSystem, this.isAutoScoring, this.fileChoiceType, this.questions, this.assignExams, }); factory ExamFileSaveDto.fromJson(Map json) => _$ExamFileSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'data', includeIfNull: true) String? data; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'isAutoScoring', includeIfNull: true) bool? isAutoScoring; @JsonKey( name: 'fileChoiceType', includeIfNull: true, toJson: examFileChoiceTypeEnumToJson, fromJson: examFileChoiceTypeEnumFromJson) enums.ExamFileChoiceTypeEnum? fileChoiceType; @JsonKey( name: 'questions', includeIfNull: true, defaultValue: []) List? questions; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; static const fromJsonFactory = _$ExamFileSaveDtoFromJson; static const toJsonFactory = _$ExamFileSaveDtoToJson; Map toJson() => _$ExamFileSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamGetListQuery { ExamGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.schoolId, this.userId, this.classLevel, this.type, this.status, this.format, this.subjectId, this.filterType, this.ids, }); factory ExamGetListQuery.fromJson(Map json) => _$ExamGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'filterType', includeIfNull: true) int? filterType; @JsonKey(name: 'ids', includeIfNull: true, defaultValue: []) List? ids; static const fromJsonFactory = _$ExamGetListQueryFromJson; static const toJsonFactory = _$ExamGetListQueryToJson; Map toJson() => _$ExamGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ExamLearnDto { ExamLearnDto({ this.id, this.title, this.avatar, this.duration, this.type, this.status, this.totalMark, this.totalQuestion, this.schoolId, this.classLevel, this.subjectId, this.format, this.fileUrl, this.categoryId, this.fileChoiceType, this.data, }); factory ExamLearnDto.fromJson(Map json) => _$ExamLearnDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'fileChoiceType', includeIfNull: true, toJson: examFileChoiceTypeEnumToJson, fromJson: examFileChoiceTypeEnumFromJson) enums.ExamFileChoiceTypeEnum? fileChoiceType; @JsonKey(name: 'data', includeIfNull: true) ExamDataDto? data; static const fromJsonFactory = _$ExamLearnDtoFromJson; static const toJsonFactory = _$ExamLearnDtoToJson; Map toJson() => _$ExamLearnDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamListDto { ExamListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.duration, this.avatar, this.type, this.status, this.totalMark, this.totalQuestion, this.schoolId, this.classLevel, this.subjectId, this.format, this.fileUrl, this.categoryId, this.isLike, this.isSystem, this.canEdit, this.isAutoScoring, this.tags, this.assignExamCount, }); factory ExamListDto.fromJson(Map json) => _$ExamListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isLike', includeIfNull: true) bool? isLike; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'canEdit', includeIfNull: true) bool? canEdit; @JsonKey(name: 'isAutoScoring', includeIfNull: true) bool? isAutoScoring; @JsonKey(name: 'tags', includeIfNull: true, defaultValue: []) List? tags; @JsonKey(name: 'assignExamCount', includeIfNull: true) int? assignExamCount; static const fromJsonFactory = _$ExamListDtoFromJson; static const toJsonFactory = _$ExamListDtoToJson; Map toJson() => _$ExamListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamListDtoFilterResult { ExamListDtoFilterResult({ this.totalRows, this.data, }); factory ExamListDtoFilterResult.fromJson(Map json) => _$ExamListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ExamListDtoFilterResultFromJson; static const toJsonFactory = _$ExamListDtoFilterResultToJson; Map toJson() => _$ExamListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ExamListDtoFilterResultApiResponse { ExamListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ExamListDtoFilterResultApiResponse.fromJson( Map json) => _$ExamListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ExamListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ExamListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ExamListDtoFilterResultApiResponseToJson; Map toJson() => _$ExamListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ExamPartDto { ExamPartDto({ this.id, this.title, this.description, this.partTime, this.totalMark, this.numberOfQuestion, this.questions, }); factory ExamPartDto.fromJson(Map json) => _$ExamPartDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) String? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'partTime', includeIfNull: true) int? partTime; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'numberOfQuestion', includeIfNull: true) int? numberOfQuestion; @JsonKey( name: 'questions', includeIfNull: true, defaultValue: []) List? questions; static const fromJsonFactory = _$ExamPartDtoFromJson; static const toJsonFactory = _$ExamPartDtoToJson; Map toJson() => _$ExamPartDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamPartQuestionSaveDto { ExamPartQuestionSaveDto({ this.id, this.mark, this.parentId, }); factory ExamPartQuestionSaveDto.fromJson(Map json) => _$ExamPartQuestionSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$ExamPartQuestionSaveDtoFromJson; static const toJsonFactory = _$ExamPartQuestionSaveDtoToJson; Map toJson() => _$ExamPartQuestionSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamPartSaveDto { ExamPartSaveDto({ this.id, this.title, this.partTime, this.totalMark, this.description, this.numberOfQuestion, this.questions, }); factory ExamPartSaveDto.fromJson(Map json) => _$ExamPartSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) String? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'partTime', includeIfNull: true) int? partTime; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'numberOfQuestion', includeIfNull: true) int? numberOfQuestion; @JsonKey( name: 'questions', includeIfNull: true, defaultValue: []) List? questions; static const fromJsonFactory = _$ExamPartSaveDtoFromJson; static const toJsonFactory = _$ExamPartSaveDtoToJson; Map toJson() => _$ExamPartSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamQuestionEntity { ExamQuestionEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.examId, this.questionId, this.mark, this.parentId, }); factory ExamQuestionEntity.fromJson(Map json) => _$ExamQuestionEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'questionId', includeIfNull: true) int? questionId; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$ExamQuestionEntityFromJson; static const toJsonFactory = _$ExamQuestionEntityToJson; Map toJson() => _$ExamQuestionEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ExamResultDto { ExamResultDto({ this.userId, this.avatar, this.fullName, this.totalExam, this.totalExamDone, this.countTest, this.countTestDone, this.averageScoreTest, }); factory ExamResultDto.fromJson(Map json) => _$ExamResultDtoFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'totalExam', includeIfNull: true) int? totalExam; @JsonKey(name: 'totalExamDone', includeIfNull: true) int? totalExamDone; @JsonKey(name: 'countTest', includeIfNull: true) int? countTest; @JsonKey(name: 'countTestDone', includeIfNull: true) int? countTestDone; @JsonKey(name: 'averageScoreTest', includeIfNull: true) double? averageScoreTest; static const fromJsonFactory = _$ExamResultDtoFromJson; static const toJsonFactory = _$ExamResultDtoToJson; Map toJson() => _$ExamResultDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamResultDtoFilterResult { ExamResultDtoFilterResult({ this.totalRows, this.data, }); factory ExamResultDtoFilterResult.fromJson(Map json) => _$ExamResultDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ExamResultDtoFilterResultFromJson; static const toJsonFactory = _$ExamResultDtoFilterResultToJson; Map toJson() => _$ExamResultDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ExamResultFilterDto { ExamResultFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.classId, }); factory ExamResultFilterDto.fromJson(Map json) => _$ExamResultFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'classId', includeIfNull: true) int? classId; static const fromJsonFactory = _$ExamResultFilterDtoFromJson; static const toJsonFactory = _$ExamResultFilterDtoToJson; Map toJson() => _$ExamResultFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamSaveDto { ExamSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.avatar, this.duration, this.type, this.status, this.totalMark, this.totalQuestion, this.schoolId, this.classLevel, this.subjectId, this.format, this.fileUrl, this.data, this.categoryId, this.isSystem, this.isAutoScoring, this.fileChoiceType, this.questions, this.assignExams, this.tagIds, }); factory ExamSaveDto.fromJson(Map json) => _$ExamSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey( name: 'type', includeIfNull: true, toJson: examTypeEnumToJson, fromJson: examTypeEnumFromJson) enums.ExamTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: examStatusEnumToJson, fromJson: examStatusEnumFromJson) enums.ExamStatusEnum? status; @JsonKey(name: 'totalMark', includeIfNull: true) double? totalMark; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'data', includeIfNull: true) ExamDataSaveDto? data; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'isAutoScoring', includeIfNull: true) bool? isAutoScoring; @JsonKey( name: 'fileChoiceType', includeIfNull: true, toJson: examFileChoiceTypeEnumToJson, fromJson: examFileChoiceTypeEnumFromJson) enums.ExamFileChoiceTypeEnum? fileChoiceType; @JsonKey( name: 'questions', includeIfNull: true, defaultValue: []) List? questions; @JsonKey( name: 'assignExams', includeIfNull: true, defaultValue: []) List? assignExams; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; static const fromJsonFactory = _$ExamSaveDtoFromJson; static const toJsonFactory = _$ExamSaveDtoToJson; Map toJson() => _$ExamSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ExamSaveDtoApiResponse { ExamSaveDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ExamSaveDtoApiResponse.fromJson(Map json) => _$ExamSaveDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ExamSaveDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ExamSaveDtoApiResponseFromJson; static const toJsonFactory = _$ExamSaveDtoApiResponseToJson; Map toJson() => _$ExamSaveDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FacebookLoginDto { FacebookLoginDto({ this.code, this.accessToken, }); factory FacebookLoginDto.fromJson(Map json) => _$FacebookLoginDtoFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'accessToken', includeIfNull: true) String? accessToken; static const fromJsonFactory = _$FacebookLoginDtoFromJson; static const toJsonFactory = _$FacebookLoginDtoToJson; Map toJson() => _$FacebookLoginDtoToJson(this); } @JsonSerializable(explicitToJson: true) class FileEntity { FileEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.path, this.contentType, this.width, this.height, this.size, this.extension, this.folderId, this.status, this.avatar, this.thumbnails, this.streamUrl, this.duration, this.fileType, this.objectType, this.parentId, this.metaDatas, }); factory FileEntity.fromJson(Map json) => _$FileEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'path', includeIfNull: true) String? path; @JsonKey(name: 'contentType', includeIfNull: true) String? contentType; @JsonKey(name: 'width', includeIfNull: true) int? width; @JsonKey(name: 'height', includeIfNull: true) int? height; @JsonKey(name: 'size', includeIfNull: true) int? size; @JsonKey(name: 'extension', includeIfNull: true) String? extension; @JsonKey(name: 'folderId', includeIfNull: true) int? folderId; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'thumbnails', includeIfNull: true) String? thumbnails; @JsonKey(name: 'streamUrl', includeIfNull: true) String? streamUrl; @JsonKey(name: 'duration', includeIfNull: true) double? duration; @JsonKey(name: 'fileType', includeIfNull: true) String? fileType; @JsonKey(name: 'objectType', includeIfNull: true) int? objectType; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey( name: 'metaDatas', includeIfNull: true, defaultValue: []) List? metaDatas; static const fromJsonFactory = _$FileEntityFromJson; static const toJsonFactory = _$FileEntityToJson; Map toJson() => _$FileEntityToJson(this); } @JsonSerializable(explicitToJson: true) class FileEntityFilterResult { FileEntityFilterResult({ this.totalRows, this.data, }); factory FileEntityFilterResult.fromJson(Map json) => _$FileEntityFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$FileEntityFilterResultFromJson; static const toJsonFactory = _$FileEntityFilterResultToJson; Map toJson() => _$FileEntityFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class FileEntityFilterResultApiResponse { FileEntityFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory FileEntityFilterResultApiResponse.fromJson( Map json) => _$FileEntityFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) FileEntityFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$FileEntityFilterResultApiResponseFromJson; static const toJsonFactory = _$FileEntityFilterResultApiResponseToJson; Map toJson() => _$FileEntityFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FileGetListQuery { FileGetListQuery({ this.userId, this.keyword, this.folderId, this.extensions, this.isGetAll, this.status, this.sortBy, this.sortDirection, this.pageIndex, this.pageSize, }); factory FileGetListQuery.fromJson(Map json) => _$FileGetListQueryFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'folderId', includeIfNull: true) int? folderId; @JsonKey(name: 'extensions', includeIfNull: true) String? extensions; @JsonKey(name: 'isGetAll', includeIfNull: true) bool? isGetAll; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'sortBy', includeIfNull: true) String? sortBy; @JsonKey(name: 'sortDirection', includeIfNull: true) String? sortDirection; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; static const fromJsonFactory = _$FileGetListQueryFromJson; static const toJsonFactory = _$FileGetListQueryToJson; Map toJson() => _$FileGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class FileMetaDataEntity { FileMetaDataEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.fileId, this.metaDirectory, this.metaKey, this.metaValue, }); factory FileMetaDataEntity.fromJson(Map json) => _$FileMetaDataEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'fileId', includeIfNull: true) int? fileId; @JsonKey(name: 'metaDirectory', includeIfNull: true) String? metaDirectory; @JsonKey(name: 'metaKey', includeIfNull: true) String? metaKey; @JsonKey(name: 'metaValue', includeIfNull: true) String? metaValue; static const fromJsonFactory = _$FileMetaDataEntityFromJson; static const toJsonFactory = _$FileMetaDataEntityToJson; Map toJson() => _$FileMetaDataEntityToJson(this); } @JsonSerializable(explicitToJson: true) class FileMetaDataEntityListApiResponse { FileMetaDataEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory FileMetaDataEntityListApiResponse.fromJson( Map json) => _$FileMetaDataEntityListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$FileMetaDataEntityListApiResponseFromJson; static const toJsonFactory = _$FileMetaDataEntityListApiResponseToJson; Map toJson() => _$FileMetaDataEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FileUpdateAvatarCommand { FileUpdateAvatarCommand({ this.id, this.avatar, }); factory FileUpdateAvatarCommand.fromJson(Map json) => _$FileUpdateAvatarCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; static const fromJsonFactory = _$FileUpdateAvatarCommandFromJson; static const toJsonFactory = _$FileUpdateAvatarCommandToJson; Map toJson() => _$FileUpdateAvatarCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FileUpdateCommand { FileUpdateCommand({ this.file, }); factory FileUpdateCommand.fromJson(Map json) => _$FileUpdateCommandFromJson(json); @JsonKey(name: 'file', includeIfNull: true) FileEntity? file; static const fromJsonFactory = _$FileUpdateCommandFromJson; static const toJsonFactory = _$FileUpdateCommandToJson; Map toJson() => _$FileUpdateCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FileUpdateNameCommand { FileUpdateNameCommand({ this.id, this.name, }); factory FileUpdateNameCommand.fromJson(Map json) => _$FileUpdateNameCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; static const fromJsonFactory = _$FileUpdateNameCommandFromJson; static const toJsonFactory = _$FileUpdateNameCommandToJson; Map toJson() => _$FileUpdateNameCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FileUpdateStatusCommand { FileUpdateStatusCommand({ this.id, this.status, }); factory FileUpdateStatusCommand.fromJson(Map json) => _$FileUpdateStatusCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey( name: 'status', includeIfNull: true, toJson: fileStatusEnumToJson, fromJson: fileStatusEnumFromJson) enums.FileStatusEnum? status; static const fromJsonFactory = _$FileUpdateStatusCommandFromJson; static const toJsonFactory = _$FileUpdateStatusCommandToJson; Map toJson() => _$FileUpdateStatusCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FileUploadByUrlResponseDto { FileUploadByUrlResponseDto({ this.path, }); factory FileUploadByUrlResponseDto.fromJson(Map json) => _$FileUploadByUrlResponseDtoFromJson(json); @JsonKey(name: 'path', includeIfNull: true) String? path; static const fromJsonFactory = _$FileUploadByUrlResponseDtoFromJson; static const toJsonFactory = _$FileUploadByUrlResponseDtoToJson; Map toJson() => _$FileUploadByUrlResponseDtoToJson(this); } @JsonSerializable(explicitToJson: true) class FileUploadByUrlResponseDtoApiResponse { FileUploadByUrlResponseDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory FileUploadByUrlResponseDtoApiResponse.fromJson( Map json) => _$FileUploadByUrlResponseDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) FileUploadByUrlResponseDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$FileUploadByUrlResponseDtoApiResponseFromJson; static const toJsonFactory = _$FileUploadByUrlResponseDtoApiResponseToJson; Map toJson() => _$FileUploadByUrlResponseDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FolderDeleteCommand { FolderDeleteCommand({ this.id, this.moveFileToFolderId, }); factory FolderDeleteCommand.fromJson(Map json) => _$FolderDeleteCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'moveFileToFolderId', includeIfNull: true) int? moveFileToFolderId; static const fromJsonFactory = _$FolderDeleteCommandFromJson; static const toJsonFactory = _$FolderDeleteCommandToJson; Map toJson() => _$FolderDeleteCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FolderEntity { FolderEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.parentId, }); factory FolderEntity.fromJson(Map json) => _$FolderEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$FolderEntityFromJson; static const toJsonFactory = _$FolderEntityToJson; Map toJson() => _$FolderEntityToJson(this); } @JsonSerializable(explicitToJson: true) class FolderEntityApiResponse { FolderEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory FolderEntityApiResponse.fromJson(Map json) => _$FolderEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) FolderEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$FolderEntityApiResponseFromJson; static const toJsonFactory = _$FolderEntityApiResponseToJson; Map toJson() => _$FolderEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FolderGetAllQuery { FolderGetAllQuery(); factory FolderGetAllQuery.fromJson(Map json) => _$FolderGetAllQueryFromJson(json); static const fromJsonFactory = _$FolderGetAllQueryFromJson; static const toJsonFactory = _$FolderGetAllQueryToJson; Map toJson() => _$FolderGetAllQueryToJson(this); } @JsonSerializable(explicitToJson: true) class FolderGetListQuery { FolderGetListQuery({ this.keyword, this.isGetAll, }); factory FolderGetListQuery.fromJson(Map json) => _$FolderGetListQueryFromJson(json); @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'isGetAll', includeIfNull: true) bool? isGetAll; static const fromJsonFactory = _$FolderGetListQueryFromJson; static const toJsonFactory = _$FolderGetListQueryToJson; Map toJson() => _$FolderGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class FolderNodeDataDto { FolderNodeDataDto({ this.id, this.parentId, this.fileCount, this.createdBy, }); factory FolderNodeDataDto.fromJson(Map json) => _$FolderNodeDataDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'fileCount', includeIfNull: true) int? fileCount; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; static const fromJsonFactory = _$FolderNodeDataDtoFromJson; static const toJsonFactory = _$FolderNodeDataDtoToJson; Map toJson() => _$FolderNodeDataDtoToJson(this); } @JsonSerializable(explicitToJson: true) class FolderNodeDto { FolderNodeDto({ this.id, this.text, this.data, this.children, this.state, }); factory FolderNodeDto.fromJson(Map json) => _$FolderNodeDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) String? id; @JsonKey(name: 'text', includeIfNull: true) String? text; @JsonKey(name: 'data', includeIfNull: true) FolderNodeDataDto? data; @JsonKey( name: 'children', includeIfNull: true, defaultValue: []) List? children; @JsonKey(name: 'state', includeIfNull: true) FolderNodeStateDto? state; static const fromJsonFactory = _$FolderNodeDtoFromJson; static const toJsonFactory = _$FolderNodeDtoToJson; Map toJson() => _$FolderNodeDtoToJson(this); } @JsonSerializable(explicitToJson: true) class FolderNodeDtoListApiResponse { FolderNodeDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory FolderNodeDtoListApiResponse.fromJson(Map json) => _$FolderNodeDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$FolderNodeDtoListApiResponseFromJson; static const toJsonFactory = _$FolderNodeDtoListApiResponseToJson; Map toJson() => _$FolderNodeDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class FolderNodeStateDto { FolderNodeStateDto({ this.selected, this.opened, this.disabled, }); factory FolderNodeStateDto.fromJson(Map json) => _$FolderNodeStateDtoFromJson(json); @JsonKey(name: 'selected', includeIfNull: true) bool? selected; @JsonKey(name: 'opened', includeIfNull: true) bool? opened; @JsonKey(name: 'disabled', includeIfNull: true) bool? disabled; static const fromJsonFactory = _$FolderNodeStateDtoFromJson; static const toJsonFactory = _$FolderNodeStateDtoToJson; Map toJson() => _$FolderNodeStateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class FolderUpdateCommand { FolderUpdateCommand({ this.folder, }); factory FolderUpdateCommand.fromJson(Map json) => _$FolderUpdateCommandFromJson(json); @JsonKey(name: 'folder', includeIfNull: true) FolderUpdateDto? folder; static const fromJsonFactory = _$FolderUpdateCommandFromJson; static const toJsonFactory = _$FolderUpdateCommandToJson; Map toJson() => _$FolderUpdateCommandToJson(this); } @JsonSerializable(explicitToJson: true) class FolderUpdateDto { FolderUpdateDto({ this.id, this.name, this.parentId, }); factory FolderUpdateDto.fromJson(Map json) => _$FolderUpdateDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$FolderUpdateDtoFromJson; static const toJsonFactory = _$FolderUpdateDtoToJson; Map toJson() => _$FolderUpdateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ForgotPasswordCheckOTPResource { ForgotPasswordCheckOTPResource({ this.username, this.otp, }); factory ForgotPasswordCheckOTPResource.fromJson(Map json) => _$ForgotPasswordCheckOTPResourceFromJson(json); @JsonKey(name: 'username', includeIfNull: true) String? username; @JsonKey(name: 'otp', includeIfNull: true) String? otp; static const fromJsonFactory = _$ForgotPasswordCheckOTPResourceFromJson; static const toJsonFactory = _$ForgotPasswordCheckOTPResourceToJson; Map toJson() => _$ForgotPasswordCheckOTPResourceToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryEntity { GalleryEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.media, this.categoryId, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, }); factory GalleryEntity.fromJson(Map json) => _$GalleryEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'media', includeIfNull: true) String? media; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; static const fromJsonFactory = _$GalleryEntityFromJson; static const toJsonFactory = _$GalleryEntityToJson; Map toJson() => _$GalleryEntityToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryEntityApiResponse { GalleryEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory GalleryEntityApiResponse.fromJson(Map json) => _$GalleryEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) GalleryEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$GalleryEntityApiResponseFromJson; static const toJsonFactory = _$GalleryEntityApiResponseToJson; Map toJson() => _$GalleryEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryGetListQuery { GalleryGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.categoryId, this.categoryUrl, this.status, }); factory GalleryGetListQuery.fromJson(Map json) => _$GalleryGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'categoryUrl', includeIfNull: true) String? categoryUrl; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; static const fromJsonFactory = _$GalleryGetListQueryFromJson; static const toJsonFactory = _$GalleryGetListQueryToJson; Map toJson() => _$GalleryGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryListDto { GalleryListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.media, this.categoryId, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.tagIds, }); factory GalleryListDto.fromJson(Map json) => _$GalleryListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'media', includeIfNull: true) String? media; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; static const fromJsonFactory = _$GalleryListDtoFromJson; static const toJsonFactory = _$GalleryListDtoToJson; Map toJson() => _$GalleryListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryListDtoFilterResult { GalleryListDtoFilterResult({ this.totalRows, this.data, }); factory GalleryListDtoFilterResult.fromJson(Map json) => _$GalleryListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$GalleryListDtoFilterResultFromJson; static const toJsonFactory = _$GalleryListDtoFilterResultToJson; Map toJson() => _$GalleryListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class GalleryListDtoFilterResultApiResponse { GalleryListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory GalleryListDtoFilterResultApiResponse.fromJson( Map json) => _$GalleryListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) GalleryListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$GalleryListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$GalleryListDtoFilterResultApiResponseToJson; Map toJson() => _$GalleryListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class GallerySaveDto { GallerySaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.description, this.media, this.categoryId, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.tagIds, }); factory GallerySaveDto.fromJson(Map json) => _$GallerySaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'media', includeIfNull: true) String? media; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; static const fromJsonFactory = _$GallerySaveDtoFromJson; static const toJsonFactory = _$GallerySaveDtoToJson; Map toJson() => _$GallerySaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class GallerySaveDtoApiResponse { GallerySaveDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory GallerySaveDtoApiResponse.fromJson(Map json) => _$GallerySaveDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) GallerySaveDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$GallerySaveDtoApiResponseFromJson; static const toJsonFactory = _$GallerySaveDtoApiResponseToJson; Map toJson() => _$GallerySaveDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class GetListLogQuery { GetListLogQuery({ this.keyword, this.objectType, this.pageIndex, this.pageSize, }); factory GetListLogQuery.fromJson(Map json) => _$GetListLogQueryFromJson(json); @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'objectType', includeIfNull: true) String? objectType; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; static const fromJsonFactory = _$GetListLogQueryFromJson; static const toJsonFactory = _$GetListLogQueryToJson; Map toJson() => _$GetListLogQueryToJson(this); } @JsonSerializable(explicitToJson: true) class GetListUserForCreateChatGroupQuery { GetListUserForCreateChatGroupQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.status, this.chatGroupType, this.keyword, this.roleIds, this.type, this.objectId, }); factory GetListUserForCreateChatGroupQuery.fromJson( Map json) => _$GetListUserForCreateChatGroupQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'chatGroupType', includeIfNull: true) int? chatGroupType; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'roleIds', includeIfNull: true, defaultValue: []) List? roleIds; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; static const fromJsonFactory = _$GetListUserForCreateChatGroupQueryFromJson; static const toJsonFactory = _$GetListUserForCreateChatGroupQueryToJson; Map toJson() => _$GetListUserForCreateChatGroupQueryToJson(this); } @JsonSerializable(explicitToJson: true) class GoogleLoginDto { GoogleLoginDto({ this.code, this.accessToken, }); factory GoogleLoginDto.fromJson(Map json) => _$GoogleLoginDtoFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'accessToken', includeIfNull: true) String? accessToken; static const fromJsonFactory = _$GoogleLoginDtoFromJson; static const toJsonFactory = _$GoogleLoginDtoToJson; Map toJson() => _$GoogleLoginDtoToJson(this); } @JsonSerializable(explicitToJson: true) class Int64ApiResponse { Int64ApiResponse({ this.data, this.message, this.success, this.code, }); factory Int64ApiResponse.fromJson(Map json) => _$Int64ApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) int? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$Int64ApiResponseFromJson; static const toJsonFactory = _$Int64ApiResponseToJson; Map toJson() => _$Int64ApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ListActivityLogDto { ListActivityLogDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.data, this.objectType, this.ip, this.createdName, this.createdAvatar, }); factory ListActivityLogDto.fromJson(Map json) => _$ListActivityLogDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'data', includeIfNull: true) String? data; @JsonKey(name: 'objectType', includeIfNull: true) String? objectType; @JsonKey(name: 'ip', includeIfNull: true) String? ip; @JsonKey(name: 'createdName', includeIfNull: true) String? createdName; @JsonKey(name: 'createdAvatar', includeIfNull: true) String? createdAvatar; static const fromJsonFactory = _$ListActivityLogDtoFromJson; static const toJsonFactory = _$ListActivityLogDtoToJson; Map toJson() => _$ListActivityLogDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ListActivityLogDtoFilterResult { ListActivityLogDtoFilterResult({ this.totalRows, this.data, }); factory ListActivityLogDtoFilterResult.fromJson(Map json) => _$ListActivityLogDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ListActivityLogDtoFilterResultFromJson; static const toJsonFactory = _$ListActivityLogDtoFilterResultToJson; Map toJson() => _$ListActivityLogDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ListActivityLogDtoFilterResultApiResponse { ListActivityLogDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ListActivityLogDtoFilterResultApiResponse.fromJson( Map json) => _$ListActivityLogDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ListActivityLogDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ListActivityLogDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ListActivityLogDtoFilterResultApiResponseToJson; Map toJson() => _$ListActivityLogDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatGroupDto { ListChatGroupDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.avatar, this.status, this.type, this.documentId, this.lastMessage, this.lastMessageDate, this.isOnline, this.lastMessageType, this.friendId, this.lastMessageId, this.lastMessageIsRead, }); factory ListChatGroupDto.fromJson(Map json) => _$ListChatGroupDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'documentId', includeIfNull: true) int? documentId; @JsonKey(name: 'lastMessage', includeIfNull: true) String? lastMessage; @JsonKey(name: 'lastMessageDate', includeIfNull: true) DateTime? lastMessageDate; @JsonKey(name: 'isOnline', includeIfNull: true) bool? isOnline; @JsonKey(name: 'lastMessageType', includeIfNull: true) int? lastMessageType; @JsonKey(name: 'friendId', includeIfNull: true) int? friendId; @JsonKey(name: 'lastMessageId', includeIfNull: true) int? lastMessageId; @JsonKey(name: 'lastMessageIsRead', includeIfNull: true) bool? lastMessageIsRead; static const fromJsonFactory = _$ListChatGroupDtoFromJson; static const toJsonFactory = _$ListChatGroupDtoToJson; Map toJson() => _$ListChatGroupDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatGroupDtoFilterResult { ListChatGroupDtoFilterResult({ this.totalRows, this.data, }); factory ListChatGroupDtoFilterResult.fromJson(Map json) => _$ListChatGroupDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ListChatGroupDtoFilterResultFromJson; static const toJsonFactory = _$ListChatGroupDtoFilterResultToJson; Map toJson() => _$ListChatGroupDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatGroupDtoFilterResultApiResponse { ListChatGroupDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ListChatGroupDtoFilterResultApiResponse.fromJson( Map json) => _$ListChatGroupDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ListChatGroupDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ListChatGroupDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ListChatGroupDtoFilterResultApiResponseToJson; Map toJson() => _$ListChatGroupDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatMessageByGroupDto { ListChatMessageByGroupDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.senderId, this.chatGroupId, this.content, this.type, this.senderName, this.senderAvatar, this.chatGroupName, this.chatGroupAvatar, this.listFilePath, this.isOnline, this.chatGroupType, this.isRead, }); factory ListChatMessageByGroupDto.fromJson(Map json) => _$ListChatMessageByGroupDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'senderId', includeIfNull: true) int? senderId; @JsonKey(name: 'chatGroupId', includeIfNull: true) int? chatGroupId; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey(name: 'senderName', includeIfNull: true) String? senderName; @JsonKey(name: 'senderAvatar', includeIfNull: true) String? senderAvatar; @JsonKey(name: 'chatGroupName', includeIfNull: true) String? chatGroupName; @JsonKey(name: 'chatGroupAvatar', includeIfNull: true) String? chatGroupAvatar; @JsonKey(name: 'listFilePath', includeIfNull: true, defaultValue: []) List? listFilePath; @JsonKey(name: 'isOnline', includeIfNull: true) bool? isOnline; @JsonKey(name: 'chatGroupType', includeIfNull: true) int? chatGroupType; @JsonKey(name: 'isRead', includeIfNull: true) bool? isRead; static const fromJsonFactory = _$ListChatMessageByGroupDtoFromJson; static const toJsonFactory = _$ListChatMessageByGroupDtoToJson; Map toJson() => _$ListChatMessageByGroupDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatMessageByGroupDtoFilterResult { ListChatMessageByGroupDtoFilterResult({ this.totalRows, this.data, }); factory ListChatMessageByGroupDtoFilterResult.fromJson( Map json) => _$ListChatMessageByGroupDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ListChatMessageByGroupDtoFilterResultFromJson; static const toJsonFactory = _$ListChatMessageByGroupDtoFilterResultToJson; Map toJson() => _$ListChatMessageByGroupDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ListChatMessageByGroupDtoFilterResultApiResponse { ListChatMessageByGroupDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ListChatMessageByGroupDtoFilterResultApiResponse.fromJson( Map json) => _$ListChatMessageByGroupDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ListChatMessageByGroupDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ListChatMessageByGroupDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ListChatMessageByGroupDtoFilterResultApiResponseToJson; Map toJson() => _$ListChatMessageByGroupDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class LocalityEntity { LocalityEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.fullName, this.otherName, this.url, this.unitType, this.parentId, this.priority, this.type, this.status, }); factory LocalityEntity.fromJson(Map json) => _$LocalityEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'otherName', includeIfNull: true) String? otherName; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'unitType', includeIfNull: true) String? unitType; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'priority', includeIfNull: true) int? priority; @JsonKey( name: 'type', includeIfNull: true, toJson: localityTypeEnumToJson, fromJson: localityTypeEnumFromJson) enums.LocalityTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: localityStatusEnumToJson, fromJson: localityStatusEnumFromJson) enums.LocalityStatusEnum? status; static const fromJsonFactory = _$LocalityEntityFromJson; static const toJsonFactory = _$LocalityEntityToJson; Map toJson() => _$LocalityEntityToJson(this); } @JsonSerializable(explicitToJson: true) class LocalityEntityFilterResult { LocalityEntityFilterResult({ this.totalRows, this.data, }); factory LocalityEntityFilterResult.fromJson(Map json) => _$LocalityEntityFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$LocalityEntityFilterResultFromJson; static const toJsonFactory = _$LocalityEntityFilterResultToJson; Map toJson() => _$LocalityEntityFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class LocalityEntityFilterResultApiResponse { LocalityEntityFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory LocalityEntityFilterResultApiResponse.fromJson( Map json) => _$LocalityEntityFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) LocalityEntityFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$LocalityEntityFilterResultApiResponseFromJson; static const toJsonFactory = _$LocalityEntityFilterResultApiResponseToJson; Map toJson() => _$LocalityEntityFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class LocalityEntityListApiResponse { LocalityEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory LocalityEntityListApiResponse.fromJson(Map json) => _$LocalityEntityListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$LocalityEntityListApiResponseFromJson; static const toJsonFactory = _$LocalityEntityListApiResponseToJson; Map toJson() => _$LocalityEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class LocalityGetListQuery { LocalityGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.type, this.parentId, }); factory LocalityGetListQuery.fromJson(Map json) => _$LocalityGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'type', includeIfNull: true, toJson: localityTypeEnumToJson, fromJson: localityTypeEnumFromJson) enums.LocalityTypeEnum? type; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$LocalityGetListQueryFromJson; static const toJsonFactory = _$LocalityGetListQueryToJson; Map toJson() => _$LocalityGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class LoginDto { LoginDto({ this.userName, this.password, this.rememberMe, this.captchaText, this.captchaToken, this.captchaInputText, }); factory LoginDto.fromJson(Map json) => _$LoginDtoFromJson(json); @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'rememberMe', includeIfNull: true) bool? rememberMe; @JsonKey(name: 'captchaText', includeIfNull: true) String? captchaText; @JsonKey(name: 'captchaToken', includeIfNull: true) String? captchaToken; @JsonKey(name: 'captchaInputText', includeIfNull: true) String? captchaInputText; static const fromJsonFactory = _$LoginDtoFromJson; static const toJsonFactory = _$LoginDtoToJson; Map toJson() => _$LoginDtoToJson(this); } @JsonSerializable(explicitToJson: true) class LoginResponseDto { LoginResponseDto({ this.require2Fa, this.token, this.refreshToken, this.userInfo, }); factory LoginResponseDto.fromJson(Map json) => _$LoginResponseDtoFromJson(json); @JsonKey(name: 'require2Fa', includeIfNull: true) bool? require2Fa; @JsonKey(name: 'token', includeIfNull: true) String? token; @JsonKey(name: 'refreshToken', includeIfNull: true) String? refreshToken; @JsonKey(name: 'userInfo', includeIfNull: true) UserInfoDto? userInfo; static const fromJsonFactory = _$LoginResponseDtoFromJson; static const toJsonFactory = _$LoginResponseDtoToJson; Map toJson() => _$LoginResponseDtoToJson(this); } @JsonSerializable(explicitToJson: true) class LoginResponseDtoApiResponse { LoginResponseDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory LoginResponseDtoApiResponse.fromJson(Map json) => _$LoginResponseDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) LoginResponseDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$LoginResponseDtoApiResponseFromJson; static const toJsonFactory = _$LoginResponseDtoApiResponseToJson; Map toJson() => _$LoginResponseDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class LoginWith2FADto { LoginWith2FADto({ this.userName, this.code, }); factory LoginWith2FADto.fromJson(Map json) => _$LoginWith2FADtoFromJson(json); @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'code', includeIfNull: true) String? code; static const fromJsonFactory = _$LoginWith2FADtoFromJson; static const toJsonFactory = _$LoginWith2FADtoToJson; Map toJson() => _$LoginWith2FADtoToJson(this); } @JsonSerializable(explicitToJson: true) class NewsDetailDto { NewsDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.summary, this.content, this.image, this.author, this.publishedDate, this.viewCount, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.categoryId, this.isFeatured, this.relatedNewsIds, this.tagIds, this.tags, this.relatedNews, this.category, }); factory NewsDetailDto.fromJson(Map json) => _$NewsDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'author', includeIfNull: true) String? author; @JsonKey(name: 'publishedDate', includeIfNull: true) DateTime? publishedDate; @JsonKey(name: 'viewCount', includeIfNull: true) int? viewCount; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isFeatured', includeIfNull: true) bool? isFeatured; @JsonKey(name: 'relatedNewsIds', includeIfNull: true, defaultValue: []) List? relatedNewsIds; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; @JsonKey(name: 'tags', includeIfNull: true, defaultValue: []) List? tags; @JsonKey( name: 'relatedNews', includeIfNull: true, defaultValue: []) List? relatedNews; @JsonKey(name: 'category', includeIfNull: true) dynamic category; static const fromJsonFactory = _$NewsDetailDtoFromJson; static const toJsonFactory = _$NewsDetailDtoToJson; Map toJson() => _$NewsDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class NewsDetailDtoApiResponse { NewsDetailDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory NewsDetailDtoApiResponse.fromJson(Map json) => _$NewsDetailDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) NewsDetailDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$NewsDetailDtoApiResponseFromJson; static const toJsonFactory = _$NewsDetailDtoApiResponseToJson; Map toJson() => _$NewsDetailDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class NewsEntity { NewsEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.summary, this.content, this.image, this.author, this.publishedDate, this.viewCount, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.categoryId, this.isFeatured, this.relatedNewsIds, }); factory NewsEntity.fromJson(Map json) => _$NewsEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'author', includeIfNull: true) String? author; @JsonKey(name: 'publishedDate', includeIfNull: true) DateTime? publishedDate; @JsonKey(name: 'viewCount', includeIfNull: true) int? viewCount; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isFeatured', includeIfNull: true) bool? isFeatured; @JsonKey(name: 'relatedNewsIds', includeIfNull: true) String? relatedNewsIds; static const fromJsonFactory = _$NewsEntityFromJson; static const toJsonFactory = _$NewsEntityToJson; Map toJson() => _$NewsEntityToJson(this); } @JsonSerializable(explicitToJson: true) class NewsEntityApiResponse { NewsEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory NewsEntityApiResponse.fromJson(Map json) => _$NewsEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) NewsEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$NewsEntityApiResponseFromJson; static const toJsonFactory = _$NewsEntityApiResponseToJson; Map toJson() => _$NewsEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class NewsGetListQuery { NewsGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.categoryId, this.categoryUrl, this.tagId, this.status, this.isFeatured, this.excludeIds, this.includeIds, }); factory NewsGetListQuery.fromJson(Map json) => _$NewsGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'categoryUrl', includeIfNull: true) String? categoryUrl; @JsonKey(name: 'tagId', includeIfNull: true) int? tagId; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'isFeatured', includeIfNull: true) bool? isFeatured; @JsonKey(name: 'excludeIds', includeIfNull: true, defaultValue: []) List? excludeIds; @JsonKey(name: 'includeIds', includeIfNull: true, defaultValue: []) List? includeIds; static const fromJsonFactory = _$NewsGetListQueryFromJson; static const toJsonFactory = _$NewsGetListQueryToJson; Map toJson() => _$NewsGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class NewsListDto { NewsListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.summary, this.content, this.image, this.author, this.publishedDate, this.viewCount, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.categoryId, this.isFeatured, this.relatedNewsIds, this.tagIds, }); factory NewsListDto.fromJson(Map json) => _$NewsListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'author', includeIfNull: true) String? author; @JsonKey(name: 'publishedDate', includeIfNull: true) DateTime? publishedDate; @JsonKey(name: 'viewCount', includeIfNull: true) int? viewCount; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isFeatured', includeIfNull: true) bool? isFeatured; @JsonKey(name: 'relatedNewsIds', includeIfNull: true, defaultValue: []) List? relatedNewsIds; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; static const fromJsonFactory = _$NewsListDtoFromJson; static const toJsonFactory = _$NewsListDtoToJson; Map toJson() => _$NewsListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class NewsListDtoFilterResult { NewsListDtoFilterResult({ this.totalRows, this.data, }); factory NewsListDtoFilterResult.fromJson(Map json) => _$NewsListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$NewsListDtoFilterResultFromJson; static const toJsonFactory = _$NewsListDtoFilterResultToJson; Map toJson() => _$NewsListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class NewsListDtoFilterResultApiResponse { NewsListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory NewsListDtoFilterResultApiResponse.fromJson( Map json) => _$NewsListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) NewsListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$NewsListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$NewsListDtoFilterResultApiResponseToJson; Map toJson() => _$NewsListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class NewsSaveDto { NewsSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.title, this.summary, this.content, this.image, this.author, this.publishedDate, this.viewCount, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.categoryId, this.isFeatured, this.relatedNewsIds, this.tagIds, }); factory NewsSaveDto.fromJson(Map json) => _$NewsSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'author', includeIfNull: true) String? author; @JsonKey(name: 'publishedDate', includeIfNull: true) DateTime? publishedDate; @JsonKey(name: 'viewCount', includeIfNull: true) int? viewCount; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey(name: 'isFeatured', includeIfNull: true) bool? isFeatured; @JsonKey(name: 'relatedNewsIds', includeIfNull: true, defaultValue: []) List? relatedNewsIds; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; static const fromJsonFactory = _$NewsSaveDtoFromJson; static const toJsonFactory = _$NewsSaveDtoToJson; Map toJson() => _$NewsSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class NotificationDto { NotificationDto({ this.id, this.title, this.content, this.type, this.createdDate, this.isRead, this.url, }); factory NotificationDto.fromJson(Map json) => _$NotificationDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'isRead', includeIfNull: true) bool? isRead; @JsonKey(name: 'url', includeIfNull: true) String? url; static const fromJsonFactory = _$NotificationDtoFromJson; static const toJsonFactory = _$NotificationDtoToJson; Map toJson() => _$NotificationDtoToJson(this); } @JsonSerializable(explicitToJson: true) class NotificationDtoFilterResult { NotificationDtoFilterResult({ this.totalRows, this.data, }); factory NotificationDtoFilterResult.fromJson(Map json) => _$NotificationDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$NotificationDtoFilterResultFromJson; static const toJsonFactory = _$NotificationDtoFilterResultToJson; Map toJson() => _$NotificationDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ObjectApiResponse { ObjectApiResponse({ this.data, this.message, this.success, this.code, }); factory ObjectApiResponse.fromJson(Map json) => _$ObjectApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) dynamic data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ObjectApiResponseFromJson; static const toJsonFactory = _$ObjectApiResponseToJson; Map toJson() => _$ObjectApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ObjectLikeSaveCommand { ObjectLikeSaveCommand({ this.objectId, this.objectType, }); factory ObjectLikeSaveCommand.fromJson(Map json) => _$ObjectLikeSaveCommandFromJson(json); @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey( name: 'objectType', includeIfNull: true, toJson: objectTypeEnumToJson, fromJson: objectTypeEnumFromJson) enums.ObjectTypeEnum? objectType; static const fromJsonFactory = _$ObjectLikeSaveCommandFromJson; static const toJsonFactory = _$ObjectLikeSaveCommandToJson; Map toJson() => _$ObjectLikeSaveCommandToJson(this); } @JsonSerializable(explicitToJson: true) class OfficeDto { OfficeDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.fullName, this.otherName, this.url, this.unitType, this.parentId, this.priority, this.type, this.status, this.parentName, this.schoolCount, this.schoolActiveCount, }); factory OfficeDto.fromJson(Map json) => _$OfficeDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'otherName', includeIfNull: true) String? otherName; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'unitType', includeIfNull: true) String? unitType; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'priority', includeIfNull: true) int? priority; @JsonKey( name: 'type', includeIfNull: true, toJson: localityTypeEnumToJson, fromJson: localityTypeEnumFromJson) enums.LocalityTypeEnum? type; @JsonKey( name: 'status', includeIfNull: true, toJson: localityStatusEnumToJson, fromJson: localityStatusEnumFromJson) enums.LocalityStatusEnum? status; @JsonKey(name: 'parentName', includeIfNull: true) String? parentName; @JsonKey(name: 'schoolCount', includeIfNull: true) int? schoolCount; @JsonKey(name: 'schoolActiveCount', includeIfNull: true) int? schoolActiveCount; static const fromJsonFactory = _$OfficeDtoFromJson; static const toJsonFactory = _$OfficeDtoToJson; Map toJson() => _$OfficeDtoToJson(this); } @JsonSerializable(explicitToJson: true) class OfficeDtoFilterResult { OfficeDtoFilterResult({ this.totalRows, this.data, }); factory OfficeDtoFilterResult.fromJson(Map json) => _$OfficeDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$OfficeDtoFilterResultFromJson; static const toJsonFactory = _$OfficeDtoFilterResultToJson; Map toJson() => _$OfficeDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class OfficeDtoFilterResultApiResponse { OfficeDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory OfficeDtoFilterResultApiResponse.fromJson( Map json) => _$OfficeDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) OfficeDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$OfficeDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$OfficeDtoFilterResultApiResponseToJson; Map toJson() => _$OfficeDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class OfficeGetListQuery { OfficeGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.parentId, }); factory OfficeGetListQuery.fromJson(Map json) => _$OfficeGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; static const fromJsonFactory = _$OfficeGetListQueryFromJson; static const toJsonFactory = _$OfficeGetListQueryToJson; Map toJson() => _$OfficeGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class OrderCreateDto { OrderCreateDto({ this.fullName, this.phone, this.address, this.notes, }); factory OrderCreateDto.fromJson(Map json) => _$OrderCreateDtoFromJson(json); @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'notes', includeIfNull: true) String? notes; static const fromJsonFactory = _$OrderCreateDtoFromJson; static const toJsonFactory = _$OrderCreateDtoToJson; Map toJson() => _$OrderCreateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class OrderCreateWithClassDto { OrderCreateWithClassDto({ this.productId, this.classId, this.fullName, this.phone, this.address, this.notes, }); factory OrderCreateWithClassDto.fromJson(Map json) => _$OrderCreateWithClassDtoFromJson(json); @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'notes', includeIfNull: true) String? notes; static const fromJsonFactory = _$OrderCreateWithClassDtoFromJson; static const toJsonFactory = _$OrderCreateWithClassDtoToJson; Map toJson() => _$OrderCreateWithClassDtoToJson(this); } @JsonSerializable(explicitToJson: true) class OrderDto { OrderDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.fullName, this.phone, this.address, this.notes, this.totalAmount, this.status, this.items, }); factory OrderDto.fromJson(Map json) => _$OrderDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'totalAmount', includeIfNull: true) double? totalAmount; @JsonKey( name: 'status', includeIfNull: true, toJson: orderStatusEnumToJson, fromJson: orderStatusEnumFromJson) enums.OrderStatusEnum? status; @JsonKey(name: 'items', includeIfNull: true, defaultValue: []) List? items; static const fromJsonFactory = _$OrderDtoFromJson; static const toJsonFactory = _$OrderDtoToJson; Map toJson() => _$OrderDtoToJson(this); } @JsonSerializable(explicitToJson: true) class OrderDtoApiResponse { OrderDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory OrderDtoApiResponse.fromJson(Map json) => _$OrderDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) OrderDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$OrderDtoApiResponseFromJson; static const toJsonFactory = _$OrderDtoApiResponseToJson; Map toJson() => _$OrderDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class OrderDtoFilterResult { OrderDtoFilterResult({ this.totalRows, this.data, }); factory OrderDtoFilterResult.fromJson(Map json) => _$OrderDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$OrderDtoFilterResultFromJson; static const toJsonFactory = _$OrderDtoFilterResultToJson; Map toJson() => _$OrderDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class OrderDtoFilterResultApiResponse { OrderDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory OrderDtoFilterResultApiResponse.fromJson(Map json) => _$OrderDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) OrderDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$OrderDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$OrderDtoFilterResultApiResponseToJson; Map toJson() => _$OrderDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class OrderEntity { OrderEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.fullName, this.phone, this.address, this.notes, this.totalAmount, this.status, this.items, }); factory OrderEntity.fromJson(Map json) => _$OrderEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'totalAmount', includeIfNull: true) double? totalAmount; @JsonKey( name: 'status', includeIfNull: true, toJson: orderStatusEnumToJson, fromJson: orderStatusEnumFromJson) enums.OrderStatusEnum? status; @JsonKey( name: 'items', includeIfNull: true, defaultValue: []) List? items; static const fromJsonFactory = _$OrderEntityFromJson; static const toJsonFactory = _$OrderEntityToJson; Map toJson() => _$OrderEntityToJson(this); } @JsonSerializable(explicitToJson: true) class OrderEntityApiResponse { OrderEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory OrderEntityApiResponse.fromJson(Map json) => _$OrderEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) OrderEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$OrderEntityApiResponseFromJson; static const toJsonFactory = _$OrderEntityApiResponseToJson; Map toJson() => _$OrderEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class OrderGetListQuery { OrderGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.userId, this.status, }); factory OrderGetListQuery.fromJson(Map json) => _$OrderGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey( name: 'status', includeIfNull: true, toJson: orderStatusEnumToJson, fromJson: orderStatusEnumFromJson) enums.OrderStatusEnum? status; static const fromJsonFactory = _$OrderGetListQueryFromJson; static const toJsonFactory = _$OrderGetListQueryToJson; Map toJson() => _$OrderGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class OrderItemDto { OrderItemDto({ this.id, this.orderId, this.productId, this.quantity, this.unitPrice, this.salePrice, this.totalPrice, this.product, }); factory OrderItemDto.fromJson(Map json) => _$OrderItemDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'orderId', includeIfNull: true) int? orderId; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; @JsonKey(name: 'unitPrice', includeIfNull: true) double? unitPrice; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey(name: 'totalPrice', includeIfNull: true) double? totalPrice; @JsonKey(name: 'product', includeIfNull: true) ProductListDto? product; static const fromJsonFactory = _$OrderItemDtoFromJson; static const toJsonFactory = _$OrderItemDtoToJson; Map toJson() => _$OrderItemDtoToJson(this); } @JsonSerializable(explicitToJson: true) class OrderItemEntity { OrderItemEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.orderId, this.productId, this.quantity, this.unitPrice, this.salePrice, this.totalPrice, this.order, this.product, }); factory OrderItemEntity.fromJson(Map json) => _$OrderItemEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'orderId', includeIfNull: true) int? orderId; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'quantity', includeIfNull: true) int? quantity; @JsonKey(name: 'unitPrice', includeIfNull: true) double? unitPrice; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey(name: 'totalPrice', includeIfNull: true) double? totalPrice; @JsonKey(name: 'order', includeIfNull: true) OrderEntity? order; @JsonKey(name: 'product', includeIfNull: true) ProductEntity? product; static const fromJsonFactory = _$OrderItemEntityFromJson; static const toJsonFactory = _$OrderItemEntityToJson; Map toJson() => _$OrderItemEntityToJson(this); } @JsonSerializable(explicitToJson: true) class OrderUpdateDto { OrderUpdateDto({ this.status, this.notes, this.fullName, this.phone, this.address, }); factory OrderUpdateDto.fromJson(Map json) => _$OrderUpdateDtoFromJson(json); @JsonKey( name: 'status', includeIfNull: true, toJson: orderStatusEnumToJson, fromJson: orderStatusEnumFromJson) enums.OrderStatusEnum? status; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'address', includeIfNull: true) String? address; static const fromJsonFactory = _$OrderUpdateDtoFromJson; static const toJsonFactory = _$OrderUpdateDtoToJson; Map toJson() => _$OrderUpdateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductAttributeSaveDto { ProductAttributeSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.productId, this.name, this.icon, this.sortOrder, }); factory ProductAttributeSaveDto.fromJson(Map json) => _$ProductAttributeSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; static const fromJsonFactory = _$ProductAttributeSaveDtoFromJson; static const toJsonFactory = _$ProductAttributeSaveDtoToJson; Map toJson() => _$ProductAttributeSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductChapterDetailDto { ProductChapterDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.productId, this.name, this.description, this.sortOrder, this.lessons, }); factory ProductChapterDetailDto.fromJson(Map json) => _$ProductChapterDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; @JsonKey( name: 'lessons', includeIfNull: true, defaultValue: []) List? lessons; static const fromJsonFactory = _$ProductChapterDetailDtoFromJson; static const toJsonFactory = _$ProductChapterDetailDtoToJson; Map toJson() => _$ProductChapterDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductChapterSaveDto { ProductChapterSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.productId, this.name, this.description, this.sortOrder, this.lessons, }); factory ProductChapterSaveDto.fromJson(Map json) => _$ProductChapterSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; @JsonKey( name: 'lessons', includeIfNull: true, defaultValue: []) List? lessons; static const fromJsonFactory = _$ProductChapterSaveDtoFromJson; static const toJsonFactory = _$ProductChapterSaveDtoToJson; Map toJson() => _$ProductChapterSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductClassDto { ProductClassDto({ this.id, this.name, this.description, this.maxStudents, this.currentStudents, this.startDate, this.endDate, this.status, this.teacherName, this.isFull, }); factory ProductClassDto.fromJson(Map json) => _$ProductClassDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'maxStudents', includeIfNull: true) int? maxStudents; @JsonKey(name: 'currentStudents', includeIfNull: true) int? currentStudents; @JsonKey(name: 'startDate', includeIfNull: true) DateTime? startDate; @JsonKey(name: 'endDate', includeIfNull: true) DateTime? endDate; @JsonKey( name: 'status', includeIfNull: true, toJson: classStatusEnumToJson, fromJson: classStatusEnumFromJson) enums.ClassStatusEnum? status; @JsonKey(name: 'teacherName', includeIfNull: true) String? teacherName; @JsonKey(name: 'isFull', includeIfNull: true) bool? isFull; static const fromJsonFactory = _$ProductClassDtoFromJson; static const toJsonFactory = _$ProductClassDtoToJson; Map toJson() => _$ProductClassDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductClassDtoListApiResponse { ProductClassDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductClassDtoListApiResponse.fromJson(Map json) => _$ProductClassDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductClassDtoListApiResponseFromJson; static const toJsonFactory = _$ProductClassDtoListApiResponseToJson; Map toJson() => _$ProductClassDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductComboItemDto { ProductComboItemDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.description, this.image, this.categoryId, this.productType, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.price, this.salePrice, this.totalLessons, this.totalDurationMinutes, }); factory ProductComboItemDto.fromJson(Map json) => _$ProductComboItemDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'price', includeIfNull: true) double? price; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey(name: 'totalLessons', includeIfNull: true) int? totalLessons; @JsonKey(name: 'totalDurationMinutes', includeIfNull: true) int? totalDurationMinutes; static const fromJsonFactory = _$ProductComboItemDtoFromJson; static const toJsonFactory = _$ProductComboItemDtoToJson; Map toJson() => _$ProductComboItemDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductDetailDto { ProductDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.description, this.image, this.categoryId, this.productType, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.price, this.salePrice, this.chapters, this.comboProducts, this.attributes, this.combos, }); factory ProductDetailDto.fromJson(Map json) => _$ProductDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'price', includeIfNull: true) double? price; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey( name: 'chapters', includeIfNull: true, defaultValue: []) List? chapters; @JsonKey( name: 'comboProducts', includeIfNull: true, defaultValue: []) List? comboProducts; @JsonKey( name: 'attributes', includeIfNull: true, defaultValue: []) List? attributes; @JsonKey(name: 'combos', includeIfNull: true, defaultValue: []) List? combos; static const fromJsonFactory = _$ProductDetailDtoFromJson; static const toJsonFactory = _$ProductDetailDtoToJson; Map toJson() => _$ProductDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductDetailDtoApiResponse { ProductDetailDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductDetailDtoApiResponse.fromJson(Map json) => _$ProductDetailDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductDetailDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductDetailDtoApiResponseFromJson; static const toJsonFactory = _$ProductDetailDtoApiResponseToJson; Map toJson() => _$ProductDetailDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductEntity { ProductEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.description, this.image, this.categoryId, this.productType, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.price, this.salePrice, }); factory ProductEntity.fromJson(Map json) => _$ProductEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'price', includeIfNull: true) double? price; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; static const fromJsonFactory = _$ProductEntityFromJson; static const toJsonFactory = _$ProductEntityToJson; Map toJson() => _$ProductEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ProductEntityApiResponse { ProductEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductEntityApiResponse.fromJson(Map json) => _$ProductEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductEntityApiResponseFromJson; static const toJsonFactory = _$ProductEntityApiResponseToJson; Map toJson() => _$ProductEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductGetByIdsQuery { ProductGetByIdsQuery({ this.ids, }); factory ProductGetByIdsQuery.fromJson(Map json) => _$ProductGetByIdsQueryFromJson(json); @JsonKey(name: 'ids', includeIfNull: true, defaultValue: []) List? ids; static const fromJsonFactory = _$ProductGetByIdsQueryFromJson; static const toJsonFactory = _$ProductGetByIdsQueryToJson; Map toJson() => _$ProductGetByIdsQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ProductGetListQuery { ProductGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.categoryId, this.productType, this.status, }); factory ProductGetListQuery.fromJson(Map json) => _$ProductGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; static const fromJsonFactory = _$ProductGetListQueryFromJson; static const toJsonFactory = _$ProductGetListQueryToJson; Map toJson() => _$ProductGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ProductLessonDetailDto { ProductLessonDetailDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.chapterId, this.name, this.description, this.lessonType, this.content, this.sortOrder, this.isFree, }); factory ProductLessonDetailDto.fromJson(Map json) => _$ProductLessonDetailDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'chapterId', includeIfNull: true) int? chapterId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey( name: 'lessonType', includeIfNull: true, toJson: lessonTypeEnumToJson, fromJson: lessonTypeEnumFromJson) enums.LessonTypeEnum? lessonType; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; @JsonKey(name: 'isFree', includeIfNull: true) bool? isFree; static const fromJsonFactory = _$ProductLessonDetailDtoFromJson; static const toJsonFactory = _$ProductLessonDetailDtoToJson; Map toJson() => _$ProductLessonDetailDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductLessonEntity { ProductLessonEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.chapterId, this.name, this.description, this.lessonType, this.content, this.sortOrder, this.isFree, }); factory ProductLessonEntity.fromJson(Map json) => _$ProductLessonEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'chapterId', includeIfNull: true) int? chapterId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey( name: 'lessonType', includeIfNull: true, toJson: lessonTypeEnumToJson, fromJson: lessonTypeEnumFromJson) enums.LessonTypeEnum? lessonType; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; @JsonKey(name: 'isFree', includeIfNull: true) bool? isFree; static const fromJsonFactory = _$ProductLessonEntityFromJson; static const toJsonFactory = _$ProductLessonEntityToJson; Map toJson() => _$ProductLessonEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ProductLessonSaveDto { ProductLessonSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.chapterId, this.name, this.description, this.lessonType, this.content, this.sortOrder, this.isFree, }); factory ProductLessonSaveDto.fromJson(Map json) => _$ProductLessonSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'chapterId', includeIfNull: true) int? chapterId; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey( name: 'lessonType', includeIfNull: true, toJson: lessonTypeEnumToJson, fromJson: lessonTypeEnumFromJson) enums.LessonTypeEnum? lessonType; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'sortOrder', includeIfNull: true) int? sortOrder; @JsonKey(name: 'isFree', includeIfNull: true) bool? isFree; static const fromJsonFactory = _$ProductLessonSaveDtoFromJson; static const toJsonFactory = _$ProductLessonSaveDtoToJson; Map toJson() => _$ProductLessonSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductListDto { ProductListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.description, this.image, this.categoryId, this.productType, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.price, this.salePrice, this.averageRating, this.reviewCount, }); factory ProductListDto.fromJson(Map json) => _$ProductListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'price', includeIfNull: true) double? price; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey(name: 'averageRating', includeIfNull: true) double? averageRating; @JsonKey(name: 'reviewCount', includeIfNull: true) int? reviewCount; static const fromJsonFactory = _$ProductListDtoFromJson; static const toJsonFactory = _$ProductListDtoToJson; Map toJson() => _$ProductListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductListDtoFilterResult { ProductListDtoFilterResult({ this.totalRows, this.data, }); factory ProductListDtoFilterResult.fromJson(Map json) => _$ProductListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ProductListDtoFilterResultFromJson; static const toJsonFactory = _$ProductListDtoFilterResultToJson; Map toJson() => _$ProductListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ProductListDtoFilterResultApiResponse { ProductListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductListDtoFilterResultApiResponse.fromJson( Map json) => _$ProductListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ProductListDtoFilterResultApiResponseToJson; Map toJson() => _$ProductListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductListDtoListApiResponse { ProductListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductListDtoListApiResponse.fromJson(Map json) => _$ProductListDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductListDtoListApiResponseFromJson; static const toJsonFactory = _$ProductListDtoListApiResponseToJson; Map toJson() => _$ProductListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewApproveCommand { ProductReviewApproveCommand({ this.id, this.status, }); factory ProductReviewApproveCommand.fromJson(Map json) => _$ProductReviewApproveCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey( name: 'status', includeIfNull: true, toJson: productReviewStatusEnumToJson, fromJson: productReviewStatusEnumFromJson) enums.ProductReviewStatusEnum? status; static const fromJsonFactory = _$ProductReviewApproveCommandFromJson; static const toJsonFactory = _$ProductReviewApproveCommandToJson; Map toJson() => _$ProductReviewApproveCommandToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewCreateDto { ProductReviewCreateDto({ this.productId, this.rating, this.comment, this.createdByName, }); factory ProductReviewCreateDto.fromJson(Map json) => _$ProductReviewCreateDtoFromJson(json); @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'rating', includeIfNull: true) int? rating; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey(name: 'createdByName', includeIfNull: true) String? createdByName; static const fromJsonFactory = _$ProductReviewCreateDtoFromJson; static const toJsonFactory = _$ProductReviewCreateDtoToJson; Map toJson() => _$ProductReviewCreateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewEntity { ProductReviewEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.productId, this.userId, this.fullName, this.avatar, this.rating, this.comment, this.status, }); factory ProductReviewEntity.fromJson(Map json) => _$ProductReviewEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'rating', includeIfNull: true) int? rating; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey( name: 'status', includeIfNull: true, toJson: productReviewStatusEnumToJson, fromJson: productReviewStatusEnumFromJson) enums.ProductReviewStatusEnum? status; static const fromJsonFactory = _$ProductReviewEntityFromJson; static const toJsonFactory = _$ProductReviewEntityToJson; Map toJson() => _$ProductReviewEntityToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewEntityApiResponse { ProductReviewEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductReviewEntityApiResponse.fromJson(Map json) => _$ProductReviewEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductReviewEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductReviewEntityApiResponseFromJson; static const toJsonFactory = _$ProductReviewEntityApiResponseToJson; Map toJson() => _$ProductReviewEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewEntityListApiResponse { ProductReviewEntityListApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductReviewEntityListApiResponse.fromJson( Map json) => _$ProductReviewEntityListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductReviewEntityListApiResponseFromJson; static const toJsonFactory = _$ProductReviewEntityListApiResponseToJson; Map toJson() => _$ProductReviewEntityListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewGenerateAiRequest { ProductReviewGenerateAiRequest({ this.count, }); factory ProductReviewGenerateAiRequest.fromJson(Map json) => _$ProductReviewGenerateAiRequestFromJson(json); @JsonKey(name: 'count', includeIfNull: true) int? count; static const fromJsonFactory = _$ProductReviewGenerateAiRequestFromJson; static const toJsonFactory = _$ProductReviewGenerateAiRequestToJson; Map toJson() => _$ProductReviewGenerateAiRequestToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewGetListQuery { ProductReviewGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.productId, this.status, }); factory ProductReviewGetListQuery.fromJson(Map json) => _$ProductReviewGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey( name: 'status', includeIfNull: true, toJson: productReviewStatusEnumToJson, fromJson: productReviewStatusEnumFromJson) enums.ProductReviewStatusEnum? status; static const fromJsonFactory = _$ProductReviewGetListQueryFromJson; static const toJsonFactory = _$ProductReviewGetListQueryToJson; Map toJson() => _$ProductReviewGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewListDto { ProductReviewListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.productId, this.userId, this.fullName, this.avatar, this.rating, this.comment, this.status, }); factory ProductReviewListDto.fromJson(Map json) => _$ProductReviewListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'productId', includeIfNull: true) int? productId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'rating', includeIfNull: true) int? rating; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey( name: 'status', includeIfNull: true, toJson: productReviewStatusEnumToJson, fromJson: productReviewStatusEnumFromJson) enums.ProductReviewStatusEnum? status; static const fromJsonFactory = _$ProductReviewListDtoFromJson; static const toJsonFactory = _$ProductReviewListDtoToJson; Map toJson() => _$ProductReviewListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewListDtoFilterResult { ProductReviewListDtoFilterResult({ this.totalRows, this.data, }); factory ProductReviewListDtoFilterResult.fromJson( Map json) => _$ProductReviewListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$ProductReviewListDtoFilterResultFromJson; static const toJsonFactory = _$ProductReviewListDtoFilterResultToJson; Map toJson() => _$ProductReviewListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class ProductReviewListDtoFilterResultApiResponse { ProductReviewListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductReviewListDtoFilterResultApiResponse.fromJson( Map json) => _$ProductReviewListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductReviewListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductReviewListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$ProductReviewListDtoFilterResultApiResponseToJson; Map toJson() => _$ProductReviewListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ProductSaveDto { ProductSaveDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.description, this.image, this.categoryId, this.productType, this.status, this.metaTitle, this.metaDescription, this.metaKeywords, this.slug, this.price, this.salePrice, this.tagIds, this.chapters, this.attributes, this.comboProductIds, }); factory ProductSaveDto.fromJson(Map json) => _$ProductSaveDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; @JsonKey( name: 'productType', includeIfNull: true, toJson: productTypeEnumToJson, fromJson: productTypeEnumFromJson) enums.ProductTypeEnum? productType; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; @JsonKey(name: 'metaTitle', includeIfNull: true) String? metaTitle; @JsonKey(name: 'metaDescription', includeIfNull: true) String? metaDescription; @JsonKey(name: 'metaKeywords', includeIfNull: true) String? metaKeywords; @JsonKey(name: 'slug', includeIfNull: true) String? slug; @JsonKey(name: 'price', includeIfNull: true) double? price; @JsonKey(name: 'salePrice', includeIfNull: true) double? salePrice; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; @JsonKey( name: 'chapters', includeIfNull: true, defaultValue: []) List? chapters; @JsonKey( name: 'attributes', includeIfNull: true, defaultValue: []) List? attributes; @JsonKey(name: 'comboProductIds', includeIfNull: true, defaultValue: []) List? comboProductIds; static const fromJsonFactory = _$ProductSaveDtoFromJson; static const toJsonFactory = _$ProductSaveDtoToJson; Map toJson() => _$ProductSaveDtoToJson(this); } @JsonSerializable(explicitToJson: true) class ProductSaveDtoApiResponse { ProductSaveDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory ProductSaveDtoApiResponse.fromJson(Map json) => _$ProductSaveDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ProductSaveDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ProductSaveDtoApiResponseFromJson; static const toJsonFactory = _$ProductSaveDtoApiResponseToJson; Map toJson() => _$ProductSaveDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class PupilAddDto { PupilAddDto({ this.fullName, this.email, this.phoneNumber, }); factory PupilAddDto.fromJson(Map json) => _$PupilAddDtoFromJson(json); @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; static const fromJsonFactory = _$PupilAddDtoFromJson; static const toJsonFactory = _$PupilAddDtoToJson; Map toJson() => _$PupilAddDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilAddMultiCommand { PupilAddMultiCommand({ this.pupils, this.password, this.classId, }); factory PupilAddMultiCommand.fromJson(Map json) => _$PupilAddMultiCommandFromJson(json); @JsonKey(name: 'pupils', includeIfNull: true, defaultValue: []) List? pupils; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'classId', includeIfNull: true) int? classId; static const fromJsonFactory = _$PupilAddMultiCommandFromJson; static const toJsonFactory = _$PupilAddMultiCommandToJson; Map toJson() => _$PupilAddMultiCommandToJson(this); } @JsonSerializable(explicitToJson: true) class PupilChangePasswordCommand { PupilChangePasswordCommand({ this.classId, this.userId, this.password, }); factory PupilChangePasswordCommand.fromJson(Map json) => _$PupilChangePasswordCommandFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'password', includeIfNull: true) String? password; static const fromJsonFactory = _$PupilChangePasswordCommandFromJson; static const toJsonFactory = _$PupilChangePasswordCommandToJson; Map toJson() => _$PupilChangePasswordCommandToJson(this); } @JsonSerializable(explicitToJson: true) class PupilCheckGoToClassDto { PupilCheckGoToClassDto({ this.classId, this.className, this.academicYearId, this.academicYearName, this.grade, }); factory PupilCheckGoToClassDto.fromJson(Map json) => _$PupilCheckGoToClassDtoFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'className', includeIfNull: true) String? className; @JsonKey(name: 'academicYearId', includeIfNull: true) int? academicYearId; @JsonKey(name: 'academicYearName', includeIfNull: true) String? academicYearName; @JsonKey(name: 'grade', includeIfNull: true) int? grade; static const fromJsonFactory = _$PupilCheckGoToClassDtoFromJson; static const toJsonFactory = _$PupilCheckGoToClassDtoToJson; Map toJson() => _$PupilCheckGoToClassDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilCheckGoToClassDtoApiResponse { PupilCheckGoToClassDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory PupilCheckGoToClassDtoApiResponse.fromJson( Map json) => _$PupilCheckGoToClassDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) PupilCheckGoToClassDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$PupilCheckGoToClassDtoApiResponseFromJson; static const toJsonFactory = _$PupilCheckGoToClassDtoApiResponseToJson; Map toJson() => _$PupilCheckGoToClassDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class PupilCopyFromClassCommand { PupilCopyFromClassCommand({ this.classId, this.newClassId, }); factory PupilCopyFromClassCommand.fromJson(Map json) => _$PupilCopyFromClassCommandFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'newClassId', includeIfNull: true) int? newClassId; static const fromJsonFactory = _$PupilCopyFromClassCommandFromJson; static const toJsonFactory = _$PupilCopyFromClassCommandToJson; Map toJson() => _$PupilCopyFromClassCommandToJson(this); } @JsonSerializable(explicitToJson: true) class PupilFilterDto { PupilFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.classId, this.keyword, this.status, }); factory PupilFilterDto.fromJson(Map json) => _$PupilFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; static const fromJsonFactory = _$PupilFilterDtoFromJson; static const toJsonFactory = _$PupilFilterDtoToJson; Map toJson() => _$PupilFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilGoToClassCommand { PupilGoToClassCommand({ this.classId, this.checkGoToClass, }); factory PupilGoToClassCommand.fromJson(Map json) => _$PupilGoToClassCommandFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'checkGoToClass', includeIfNull: true) PupilCheckGoToClassDto? checkGoToClass; static const fromJsonFactory = _$PupilGoToClassCommandFromJson; static const toJsonFactory = _$PupilGoToClassCommandToJson; Map toJson() => _$PupilGoToClassCommandToJson(this); } @JsonSerializable(explicitToJson: true) class PupilHistoryDoExamDto { PupilHistoryDoExamDto({ this.assignExamId, this.title, this.type, this.subject, this.submitDate, this.score, this.status, this.createdBy, this.canMark, this.examId, this.examResultId, }); factory PupilHistoryDoExamDto.fromJson(Map json) => _$PupilHistoryDoExamDtoFromJson(json); @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'title', includeIfNull: true) String? title; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'submitDate', includeIfNull: true) DateTime? submitDate; @JsonKey(name: 'score', includeIfNull: true) double? score; @JsonKey( name: 'status', includeIfNull: true, toJson: assignExamUserStatusEnumToJson, fromJson: assignExamUserStatusEnumFromJson) enums.AssignExamUserStatusEnum? status; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'canMark', includeIfNull: true) bool? canMark; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'examResultId', includeIfNull: true) int? examResultId; static const fromJsonFactory = _$PupilHistoryDoExamDtoFromJson; static const toJsonFactory = _$PupilHistoryDoExamDtoToJson; Map toJson() => _$PupilHistoryDoExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilHistoryDoExamDtoFilterResult { PupilHistoryDoExamDtoFilterResult({ this.totalRows, this.data, }); factory PupilHistoryDoExamDtoFilterResult.fromJson( Map json) => _$PupilHistoryDoExamDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$PupilHistoryDoExamDtoFilterResultFromJson; static const toJsonFactory = _$PupilHistoryDoExamDtoFilterResultToJson; Map toJson() => _$PupilHistoryDoExamDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class PupilHistoryDoExamDtoFilterResultApiResponse { PupilHistoryDoExamDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory PupilHistoryDoExamDtoFilterResultApiResponse.fromJson( Map json) => _$PupilHistoryDoExamDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) PupilHistoryDoExamDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$PupilHistoryDoExamDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$PupilHistoryDoExamDtoFilterResultApiResponseToJson; Map toJson() => _$PupilHistoryDoExamDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class PupilHistoryDoExamFilterDto { PupilHistoryDoExamFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.userId, this.classId, this.subjectId, this.keyword, this.submitDate, this.type, }); factory PupilHistoryDoExamFilterDto.fromJson(Map json) => _$PupilHistoryDoExamFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'submitDate', includeIfNull: true) DateTime? submitDate; @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; static const fromJsonFactory = _$PupilHistoryDoExamFilterDtoFromJson; static const toJsonFactory = _$PupilHistoryDoExamFilterDtoToJson; Map toJson() => _$PupilHistoryDoExamFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilListDto { PupilListDto({ this.id, this.userName, this.avatar, this.fullName, this.email, this.phoneNumber, this.studentCode, this.createdDate, this.birthDay, this.gender, this.status, this.identifierCode, }); factory PupilListDto.fromJson(Map json) => _$PupilListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'studentCode', includeIfNull: true) String? studentCode; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'birthDay', includeIfNull: true) DateTime? birthDay; @JsonKey(name: 'gender', includeIfNull: true) int? gender; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; @JsonKey(name: 'identifierCode', includeIfNull: true) String? identifierCode; static const fromJsonFactory = _$PupilListDtoFromJson; static const toJsonFactory = _$PupilListDtoToJson; Map toJson() => _$PupilListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilListDtoFilterResult { PupilListDtoFilterResult({ this.totalRows, this.data, }); factory PupilListDtoFilterResult.fromJson(Map json) => _$PupilListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$PupilListDtoFilterResultFromJson; static const toJsonFactory = _$PupilListDtoFilterResultToJson; Map toJson() => _$PupilListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStaticByTypeExamDto { PupilStaticByTypeExamDto({ this.type, this.total, this.done, this.averageScore, }); factory PupilStaticByTypeExamDto.fromJson(Map json) => _$PupilStaticByTypeExamDtoFromJson(json); @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'total', includeIfNull: true) int? total; @JsonKey(name: 'done', includeIfNull: true) int? done; @JsonKey(name: 'averageScore', includeIfNull: true) double? averageScore; static const fromJsonFactory = _$PupilStaticByTypeExamDtoFromJson; static const toJsonFactory = _$PupilStaticByTypeExamDtoToJson; Map toJson() => _$PupilStaticByTypeExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStaticByTypeExamDtoListApiResponse { PupilStaticByTypeExamDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory PupilStaticByTypeExamDtoListApiResponse.fromJson( Map json) => _$PupilStaticByTypeExamDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$PupilStaticByTypeExamDtoListApiResponseFromJson; static const toJsonFactory = _$PupilStaticByTypeExamDtoListApiResponseToJson; Map toJson() => _$PupilStaticByTypeExamDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStaticDto { PupilStaticDto({ this.averageScore, this.percentage, this.total, }); factory PupilStaticDto.fromJson(Map json) => _$PupilStaticDtoFromJson(json); @JsonKey(name: 'averageScore', includeIfNull: true) double? averageScore; @JsonKey(name: 'percentage', includeIfNull: true) double? percentage; @JsonKey(name: 'total', includeIfNull: true) int? total; static const fromJsonFactory = _$PupilStaticDtoFromJson; static const toJsonFactory = _$PupilStaticDtoToJson; Map toJson() => _$PupilStaticDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStaticDtoApiResponse { PupilStaticDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory PupilStaticDtoApiResponse.fromJson(Map json) => _$PupilStaticDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) PupilStaticDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$PupilStaticDtoApiResponseFromJson; static const toJsonFactory = _$PupilStaticDtoApiResponseToJson; Map toJson() => _$PupilStaticDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStatisticalDto { PupilStatisticalDto({ this.totalClass, this.totalExamNeedDo, this.totalExam, this.totalExamDone, }); factory PupilStatisticalDto.fromJson(Map json) => _$PupilStatisticalDtoFromJson(json); @JsonKey(name: 'totalClass', includeIfNull: true) int? totalClass; @JsonKey(name: 'totalExamNeedDo', includeIfNull: true) int? totalExamNeedDo; @JsonKey(name: 'totalExam', includeIfNull: true) int? totalExam; @JsonKey(name: 'totalExamDone', includeIfNull: true) int? totalExamDone; static const fromJsonFactory = _$PupilStatisticalDtoFromJson; static const toJsonFactory = _$PupilStatisticalDtoToJson; Map toJson() => _$PupilStatisticalDtoToJson(this); } @JsonSerializable(explicitToJson: true) class PupilStatisticalDtoApiResponse { PupilStatisticalDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory PupilStatisticalDtoApiResponse.fromJson(Map json) => _$PupilStatisticalDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) PupilStatisticalDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$PupilStatisticalDtoApiResponseFromJson; static const toJsonFactory = _$PupilStatisticalDtoApiResponseToJson; Map toJson() => _$PupilStatisticalDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionDto { QuestionDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.schoolId, this.type, this.content, this.avatar, this.image, this.answers, this.explain, this.transcript, this.parentId, this.sound, this.video, this.classLevel, this.level, this.subjectId, this.status, this.format, this.labelType, this.isSystem, this.tagIds, this.mark, this.childs, this.file, }); factory QuestionDto.fromJson(Map json) => _$QuestionDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'image', includeIfNull: true, defaultValue: []) List? image; @JsonKey(name: 'answers', includeIfNull: true) dynamic answers; @JsonKey(name: 'explain', includeIfNull: true) String? explain; @JsonKey(name: 'transcript', includeIfNull: true) String? transcript; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'sound', includeIfNull: true, defaultValue: []) List? sound; @JsonKey(name: 'video', includeIfNull: true) String? video; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey( name: 'level', includeIfNull: true, toJson: questionLevelEnumToJson, fromJson: questionLevelEnumFromJson) enums.QuestionLevelEnum? level; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'status', includeIfNull: true, toJson: questionStatusEnumToJson, fromJson: questionStatusEnumFromJson) enums.QuestionStatusEnum? status; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'labelType', includeIfNull: true) int? labelType; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'tagIds', includeIfNull: true, defaultValue: []) List? tagIds; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'childs', includeIfNull: true, defaultValue: []) List? childs; @JsonKey(name: 'file', includeIfNull: true) String? file; static const fromJsonFactory = _$QuestionDtoFromJson; static const toJsonFactory = _$QuestionDtoToJson; Map toJson() => _$QuestionDtoToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionDtoApiResponse { QuestionDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory QuestionDtoApiResponse.fromJson(Map json) => _$QuestionDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) QuestionDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$QuestionDtoApiResponseFromJson; static const toJsonFactory = _$QuestionDtoApiResponseToJson; Map toJson() => _$QuestionDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionDtoListApiResponse { QuestionDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory QuestionDtoListApiResponse.fromJson(Map json) => _$QuestionDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$QuestionDtoListApiResponseFromJson; static const toJsonFactory = _$QuestionDtoListApiResponseToJson; Map toJson() => _$QuestionDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionGetListQuery { QuestionGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.type, this.userId, this.schoolId, this.subjectId, this.classLevel, this.level, this.status, this.filterType, this.ids, }); factory QuestionGetListQuery.fromJson(Map json) => _$QuestionGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey( name: 'level', includeIfNull: true, toJson: questionLevelEnumToJson, fromJson: questionLevelEnumFromJson) enums.QuestionLevelEnum? level; @JsonKey( name: 'status', includeIfNull: true, toJson: questionStatusEnumToJson, fromJson: questionStatusEnumFromJson) enums.QuestionStatusEnum? status; @JsonKey(name: 'filterType', includeIfNull: true) int? filterType; @JsonKey(name: 'ids', includeIfNull: true, defaultValue: []) List? ids; static const fromJsonFactory = _$QuestionGetListQueryFromJson; static const toJsonFactory = _$QuestionGetListQueryToJson; Map toJson() => _$QuestionGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionListDto { QuestionListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.schoolId, this.type, this.content, this.avatar, this.image, this.answers, this.explain, this.transcript, this.parentId, this.sound, this.video, this.classLevel, this.level, this.subjectId, this.status, this.format, this.labelType, this.isSystem, this.isLike, }); factory QuestionListDto.fromJson(Map json) => _$QuestionListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'image', includeIfNull: true, defaultValue: []) List? image; @JsonKey(name: 'answers', includeIfNull: true) String? answers; @JsonKey(name: 'explain', includeIfNull: true) String? explain; @JsonKey(name: 'transcript', includeIfNull: true) String? transcript; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'sound', includeIfNull: true, defaultValue: []) List? sound; @JsonKey(name: 'video', includeIfNull: true) String? video; @JsonKey(name: 'classLevel', includeIfNull: true) int? classLevel; @JsonKey( name: 'level', includeIfNull: true, toJson: questionLevelEnumToJson, fromJson: questionLevelEnumFromJson) enums.QuestionLevelEnum? level; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; @JsonKey( name: 'status', includeIfNull: true, toJson: questionStatusEnumToJson, fromJson: questionStatusEnumFromJson) enums.QuestionStatusEnum? status; @JsonKey( name: 'format', includeIfNull: true, toJson: examFormatEnumToJson, fromJson: examFormatEnumFromJson) enums.ExamFormatEnum? format; @JsonKey(name: 'labelType', includeIfNull: true) int? labelType; @JsonKey(name: 'isSystem', includeIfNull: true) bool? isSystem; @JsonKey(name: 'isLike', includeIfNull: true) bool? isLike; static const fromJsonFactory = _$QuestionListDtoFromJson; static const toJsonFactory = _$QuestionListDtoToJson; Map toJson() => _$QuestionListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionListDtoFilterResult { QuestionListDtoFilterResult({ this.totalRows, this.data, }); factory QuestionListDtoFilterResult.fromJson(Map json) => _$QuestionListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$QuestionListDtoFilterResultFromJson; static const toJsonFactory = _$QuestionListDtoFilterResultToJson; Map toJson() => _$QuestionListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class QuestionListDtoFilterResultApiResponse { QuestionListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory QuestionListDtoFilterResultApiResponse.fromJson( Map json) => _$QuestionListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) QuestionListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$QuestionListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$QuestionListDtoFilterResultApiResponseToJson; Map toJson() => _$QuestionListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RefreshTokenEntity { RefreshTokenEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.token, this.userId, this.user, this.expires, this.isExpired, this.revoked, this.isActive, }); factory RefreshTokenEntity.fromJson(Map json) => _$RefreshTokenEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'token', includeIfNull: true) String? token; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'user', includeIfNull: true) UserEntity? user; @JsonKey(name: 'expires', includeIfNull: true) DateTime? expires; @JsonKey(name: 'isExpired', includeIfNull: true) bool? isExpired; @JsonKey(name: 'revoked', includeIfNull: true) DateTime? revoked; @JsonKey(name: 'isActive', includeIfNull: true) bool? isActive; static const fromJsonFactory = _$RefreshTokenEntityFromJson; static const toJsonFactory = _$RefreshTokenEntityToJson; Map toJson() => _$RefreshTokenEntityToJson(this); } @JsonSerializable(explicitToJson: true) class RefreshTokenResponseDto { RefreshTokenResponseDto({ this.token, }); factory RefreshTokenResponseDto.fromJson(Map json) => _$RefreshTokenResponseDtoFromJson(json); @JsonKey(name: 'token', includeIfNull: true) String? token; static const fromJsonFactory = _$RefreshTokenResponseDtoFromJson; static const toJsonFactory = _$RefreshTokenResponseDtoToJson; Map toJson() => _$RefreshTokenResponseDtoToJson(this); } @JsonSerializable(explicitToJson: true) class RefreshTokenResponseDtoApiResponse { RefreshTokenResponseDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory RefreshTokenResponseDtoApiResponse.fromJson( Map json) => _$RefreshTokenResponseDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) RefreshTokenResponseDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$RefreshTokenResponseDtoApiResponseFromJson; static const toJsonFactory = _$RefreshTokenResponseDtoApiResponseToJson; Map toJson() => _$RefreshTokenResponseDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RegisterDto { RegisterDto({ this.userName, this.email, this.password, this.fullName, this.phoneNumber, this.roles, this.id, this.avatar, this.status, this.type, this.objectId, this.provinceId, this.identifierCode, this.birthDay, this.gender, this.address, }); factory RegisterDto.fromJson(Map json) => _$RegisterDtoFromJson(json); @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'roles', includeIfNull: true, defaultValue: []) List? roles; @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'identifierCode', includeIfNull: true) String? identifierCode; @JsonKey(name: 'birthDay', includeIfNull: true) DateTime? birthDay; @JsonKey(name: 'gender', includeIfNull: true) int? gender; @JsonKey(name: 'address', includeIfNull: true) String? address; static const fromJsonFactory = _$RegisterDtoFromJson; static const toJsonFactory = _$RegisterDtoToJson; Map toJson() => _$RegisterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class RegisterDtoApiResponse { RegisterDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory RegisterDtoApiResponse.fromJson(Map json) => _$RegisterDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) RegisterDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$RegisterDtoApiResponseFromJson; static const toJsonFactory = _$RegisterDtoApiResponseToJson; Map toJson() => _$RegisterDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class ResetPasswordByUserNameResource { ResetPasswordByUserNameResource({ this.username, this.password, this.rePassword, this.token, }); factory ResetPasswordByUserNameResource.fromJson(Map json) => _$ResetPasswordByUserNameResourceFromJson(json); @JsonKey(name: 'username', includeIfNull: true) String? username; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'rePassword', includeIfNull: true) String? rePassword; @JsonKey(name: 'token', includeIfNull: true) String? token; static const fromJsonFactory = _$ResetPasswordByUserNameResourceFromJson; static const toJsonFactory = _$ResetPasswordByUserNameResourceToJson; Map toJson() => _$ResetPasswordByUserNameResourceToJson(this); } @JsonSerializable(explicitToJson: true) class ResponseX { ResponseX({ this.sessionId, this.fileId, this.docType, this.pages, }); factory ResponseX.fromJson(Map json) => _$ResponseXFromJson(json); @JsonKey(name: 'sessionId', includeIfNull: true) int? sessionId; @JsonKey(name: 'fileId', includeIfNull: true) int? fileId; @JsonKey(name: 'docType', includeIfNull: true) String? docType; @JsonKey(name: 'pages', includeIfNull: true) Object? pages; static const fromJsonFactory = _$ResponseXFromJson; static const toJsonFactory = _$ResponseXToJson; Map toJson() => _$ResponseXToJson(this); } @JsonSerializable(explicitToJson: true) class ResponseXApiResponse { ResponseXApiResponse({ this.data, this.message, this.success, this.code, }); factory ResponseXApiResponse.fromJson(Map json) => _$ResponseXApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) ResponseX? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$ResponseXApiResponseFromJson; static const toJsonFactory = _$ResponseXApiResponseToJson; Map toJson() => _$ResponseXApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RoleDto { RoleDto({ this.id, this.name, this.userCount, this.listModule, }); factory RoleDto.fromJson(Map json) => _$RoleDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'userCount', includeIfNull: true) int? userCount; @JsonKey( name: 'listModule', includeIfNull: true, defaultValue: []) List? listModule; static const fromJsonFactory = _$RoleDtoFromJson; static const toJsonFactory = _$RoleDtoToJson; Map toJson() => _$RoleDtoToJson(this); } @JsonSerializable(explicitToJson: true) class RoleDtoApiResponse { RoleDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory RoleDtoApiResponse.fromJson(Map json) => _$RoleDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) RoleDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$RoleDtoApiResponseFromJson; static const toJsonFactory = _$RoleDtoApiResponseToJson; Map toJson() => _$RoleDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RoleDtoListApiResponse { RoleDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory RoleDtoListApiResponse.fromJson(Map json) => _$RoleDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$RoleDtoListApiResponseFromJson; static const toJsonFactory = _$RoleDtoListApiResponseToJson; Map toJson() => _$RoleDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RoleModuleDto { RoleModuleDto({ this.module, this.moduleName, this.isZone, this.isFull, this.tenantId, this.permissions, }); factory RoleModuleDto.fromJson(Map json) => _$RoleModuleDtoFromJson(json); @JsonKey( name: 'module', includeIfNull: true, toJson: moduleEnumToJson, fromJson: moduleEnumFromJson) enums.ModuleEnum? module; @JsonKey(name: 'moduleName', includeIfNull: true) String? moduleName; @JsonKey(name: 'isZone', includeIfNull: true) bool? isZone; @JsonKey(name: 'isFull', includeIfNull: true) bool? isFull; @JsonKey(name: 'tenantId', includeIfNull: true) int? tenantId; @JsonKey( name: 'permissions', includeIfNull: true, defaultValue: []) List? permissions; static const fromJsonFactory = _$RoleModuleDtoFromJson; static const toJsonFactory = _$RoleModuleDtoToJson; Map toJson() => _$RoleModuleDtoToJson(this); } @JsonSerializable(explicitToJson: true) class RoleModuleDtoListApiResponse { RoleModuleDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory RoleModuleDtoListApiResponse.fromJson(Map json) => _$RoleModuleDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$RoleModuleDtoListApiResponseFromJson; static const toJsonFactory = _$RoleModuleDtoListApiResponseToJson; Map toJson() => _$RoleModuleDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class RolePermissionDto { RolePermissionDto({ this.fullZone, this.zoneIds, this.permission, }); factory RolePermissionDto.fromJson(Map json) => _$RolePermissionDtoFromJson(json); @JsonKey(name: 'fullZone', includeIfNull: true) bool? fullZone; @JsonKey(name: 'zoneIds', includeIfNull: true, defaultValue: []) List? zoneIds; @JsonKey(name: 'permission', includeIfNull: true) int? permission; static const fromJsonFactory = _$RolePermissionDtoFromJson; static const toJsonFactory = _$RolePermissionDtoToJson; Map toJson() => _$RolePermissionDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillEntity { SafetySkillEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.detail, this.icon, this.image, this.status, }); factory SafetySkillEntity.fromJson(Map json) => _$SafetySkillEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'detail', includeIfNull: true) String? detail; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; static const fromJsonFactory = _$SafetySkillEntityFromJson; static const toJsonFactory = _$SafetySkillEntityToJson; Map toJson() => _$SafetySkillEntityToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillEntityApiResponse { SafetySkillEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory SafetySkillEntityApiResponse.fromJson(Map json) => _$SafetySkillEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SafetySkillEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SafetySkillEntityApiResponseFromJson; static const toJsonFactory = _$SafetySkillEntityApiResponseToJson; Map toJson() => _$SafetySkillEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillGetListQuery { SafetySkillGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, }); factory SafetySkillGetListQuery.fromJson(Map json) => _$SafetySkillGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; static const fromJsonFactory = _$SafetySkillGetListQueryFromJson; static const toJsonFactory = _$SafetySkillGetListQueryToJson; Map toJson() => _$SafetySkillGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillListDto { SafetySkillListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.summary, this.detail, this.icon, this.image, this.status, }); factory SafetySkillListDto.fromJson(Map json) => _$SafetySkillListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'summary', includeIfNull: true) String? summary; @JsonKey(name: 'detail', includeIfNull: true) String? detail; @JsonKey(name: 'icon', includeIfNull: true) String? icon; @JsonKey(name: 'image', includeIfNull: true) String? image; @JsonKey( name: 'status', includeIfNull: true, toJson: commonStatusEnumToJson, fromJson: commonStatusEnumFromJson) enums.CommonStatusEnum? status; static const fromJsonFactory = _$SafetySkillListDtoFromJson; static const toJsonFactory = _$SafetySkillListDtoToJson; Map toJson() => _$SafetySkillListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillListDtoFilterResult { SafetySkillListDtoFilterResult({ this.totalRows, this.data, }); factory SafetySkillListDtoFilterResult.fromJson(Map json) => _$SafetySkillListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$SafetySkillListDtoFilterResultFromJson; static const toJsonFactory = _$SafetySkillListDtoFilterResultToJson; Map toJson() => _$SafetySkillListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class SafetySkillListDtoFilterResultApiResponse { SafetySkillListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory SafetySkillListDtoFilterResultApiResponse.fromJson( Map json) => _$SafetySkillListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SafetySkillListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SafetySkillListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$SafetySkillListDtoFilterResultApiResponseToJson; Map toJson() => _$SafetySkillListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolClassDto { SchoolClassDto({ this.id, this.name, this.classes, }); factory SchoolClassDto.fromJson(Map json) => _$SchoolClassDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey( name: 'classes', includeIfNull: true, defaultValue: []) List? classes; static const fromJsonFactory = _$SchoolClassDtoFromJson; static const toJsonFactory = _$SchoolClassDtoToJson; Map toJson() => _$SchoolClassDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolDto { SchoolDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.status, this.districtId, this.provinceId, this.wardId, this.address, this.email, this.phone, this.logo, this.url, this.description, this.type, this.departmentId, }); factory SchoolDto.fromJson(Map json) => _$SchoolDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; @JsonKey(name: 'districtId', includeIfNull: true) int? districtId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'wardId', includeIfNull: true) int? wardId; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'logo', includeIfNull: true) String? logo; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'departmentId', includeIfNull: true) int? departmentId; static const fromJsonFactory = _$SchoolDtoFromJson; static const toJsonFactory = _$SchoolDtoToJson; Map toJson() => _$SchoolDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolDtoApiResponse { SchoolDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory SchoolDtoApiResponse.fromJson(Map json) => _$SchoolDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SchoolDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SchoolDtoApiResponseFromJson; static const toJsonFactory = _$SchoolDtoApiResponseToJson; Map toJson() => _$SchoolDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolEntity { SchoolEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.status, this.districtId, this.provinceId, this.wardId, this.address, this.email, this.phone, this.logo, this.url, this.description, this.type, }); factory SchoolEntity.fromJson(Map json) => _$SchoolEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; @JsonKey(name: 'districtId', includeIfNull: true) int? districtId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'wardId', includeIfNull: true) int? wardId; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'logo', includeIfNull: true) String? logo; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'type', includeIfNull: true) String? type; static const fromJsonFactory = _$SchoolEntityFromJson; static const toJsonFactory = _$SchoolEntityToJson; Map toJson() => _$SchoolEntityToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolEntityApiResponse { SchoolEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory SchoolEntityApiResponse.fromJson(Map json) => _$SchoolEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SchoolEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SchoolEntityApiResponseFromJson; static const toJsonFactory = _$SchoolEntityApiResponseToJson; Map toJson() => _$SchoolEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolGetListQuery { SchoolGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.departmentId, this.officeId, this.type, this.status, }); factory SchoolGetListQuery.fromJson(Map json) => _$SchoolGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'departmentId', includeIfNull: true) int? departmentId; @JsonKey(name: 'officeId', includeIfNull: true) int? officeId; @JsonKey(name: 'type', includeIfNull: true) int? type; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; static const fromJsonFactory = _$SchoolGetListQueryFromJson; static const toJsonFactory = _$SchoolGetListQueryToJson; Map toJson() => _$SchoolGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolLevel { SchoolLevel({ this.id, this.name, this.classLevels, }); factory SchoolLevel.fromJson(Map json) => _$SchoolLevelFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey( name: 'classLevels', includeIfNull: true, defaultValue: []) List? classLevels; static const fromJsonFactory = _$SchoolLevelFromJson; static const toJsonFactory = _$SchoolLevelToJson; Map toJson() => _$SchoolLevelToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolListDto { SchoolListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.code, this.name, this.status, this.districtId, this.provinceId, this.wardId, this.address, this.email, this.phone, this.logo, this.url, this.description, this.type, this.countActiveClass, this.departmentName, this.officeName, this.studentCount, this.teacherCount, }); factory SchoolListDto.fromJson(Map json) => _$SchoolListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey( name: 'status', includeIfNull: true, toJson: schoolStatusEnumToJson, fromJson: schoolStatusEnumFromJson) enums.SchoolStatusEnum? status; @JsonKey(name: 'districtId', includeIfNull: true) int? districtId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'wardId', includeIfNull: true) int? wardId; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phone', includeIfNull: true) String? phone; @JsonKey(name: 'logo', includeIfNull: true) String? logo; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'description', includeIfNull: true) String? description; @JsonKey(name: 'type', includeIfNull: true) String? type; @JsonKey(name: 'countActiveClass', includeIfNull: true) int? countActiveClass; @JsonKey(name: 'departmentName', includeIfNull: true) String? departmentName; @JsonKey(name: 'officeName', includeIfNull: true) String? officeName; @JsonKey(name: 'studentCount', includeIfNull: true) int? studentCount; @JsonKey(name: 'teacherCount', includeIfNull: true) int? teacherCount; static const fromJsonFactory = _$SchoolListDtoFromJson; static const toJsonFactory = _$SchoolListDtoToJson; Map toJson() => _$SchoolListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolListDtoFilterResult { SchoolListDtoFilterResult({ this.totalRows, this.data, }); factory SchoolListDtoFilterResult.fromJson(Map json) => _$SchoolListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$SchoolListDtoFilterResultFromJson; static const toJsonFactory = _$SchoolListDtoFilterResultToJson; Map toJson() => _$SchoolListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolListDtoFilterResultApiResponse { SchoolListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory SchoolListDtoFilterResultApiResponse.fromJson( Map json) => _$SchoolListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SchoolListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SchoolListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$SchoolListDtoFilterResultApiResponseToJson; Map toJson() => _$SchoolListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolListDtoListApiResponse { SchoolListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory SchoolListDtoListApiResponse.fromJson(Map json) => _$SchoolListDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SchoolListDtoListApiResponseFromJson; static const toJsonFactory = _$SchoolListDtoListApiResponseToJson; Map toJson() => _$SchoolListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolStaticCountDto { SchoolStaticCountDto({ this.schoolName, this.classCount, this.teacherCount, this.assignmentCount, }); factory SchoolStaticCountDto.fromJson(Map json) => _$SchoolStaticCountDtoFromJson(json); @JsonKey(name: 'schoolName', includeIfNull: true) String? schoolName; @JsonKey(name: 'classCount', includeIfNull: true) int? classCount; @JsonKey(name: 'teacherCount', includeIfNull: true) int? teacherCount; @JsonKey(name: 'assignmentCount', includeIfNull: true) int? assignmentCount; static const fromJsonFactory = _$SchoolStaticCountDtoFromJson; static const toJsonFactory = _$SchoolStaticCountDtoToJson; Map toJson() => _$SchoolStaticCountDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SchoolStaticCountDtoApiResponse { SchoolStaticCountDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory SchoolStaticCountDtoApiResponse.fromJson(Map json) => _$SchoolStaticCountDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SchoolStaticCountDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SchoolStaticCountDtoApiResponseFromJson; static const toJsonFactory = _$SchoolStaticCountDtoApiResponseToJson; Map toJson() => _$SchoolStaticCountDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class SessionAttendanceEntity { SessionAttendanceEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.sessionId, this.userId, this.joinTime, this.leaveTime, this.durationMinutes, this.status, this.notes, this.session, this.user, }); factory SessionAttendanceEntity.fromJson(Map json) => _$SessionAttendanceEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'sessionId', includeIfNull: true) int? sessionId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'joinTime', includeIfNull: true) DateTime? joinTime; @JsonKey(name: 'leaveTime', includeIfNull: true) DateTime? leaveTime; @JsonKey(name: 'durationMinutes', includeIfNull: true) int? durationMinutes; @JsonKey( name: 'status', includeIfNull: true, toJson: attendanceStatusEnumToJson, fromJson: attendanceStatusEnumFromJson) enums.AttendanceStatusEnum? status; @JsonKey(name: 'notes', includeIfNull: true) String? notes; @JsonKey(name: 'session', includeIfNull: true) ClassSessionEntity? session; @JsonKey(name: 'user', includeIfNull: true) UserEntity? user; static const fromJsonFactory = _$SessionAttendanceEntityFromJson; static const toJsonFactory = _$SessionAttendanceEntityToJson; Map toJson() => _$SessionAttendanceEntityToJson(this); } @JsonSerializable(explicitToJson: true) class Setup2FADto { Setup2FADto({ this.sharedKey, this.authenticatorUri, }); factory Setup2FADto.fromJson(Map json) => _$Setup2FADtoFromJson(json); @JsonKey(name: 'sharedKey', includeIfNull: true) String? sharedKey; @JsonKey(name: 'authenticatorUri', includeIfNull: true) String? authenticatorUri; static const fromJsonFactory = _$Setup2FADtoFromJson; static const toJsonFactory = _$Setup2FADtoToJson; Map toJson() => _$Setup2FADtoToJson(this); } @JsonSerializable(explicitToJson: true) class SimpleChatRequest { SimpleChatRequest({ this.message, this.systemPrompt, }); factory SimpleChatRequest.fromJson(Map json) => _$SimpleChatRequestFromJson(json); @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'systemPrompt', includeIfNull: true) String? systemPrompt; static const fromJsonFactory = _$SimpleChatRequestFromJson; static const toJsonFactory = _$SimpleChatRequestToJson; Map toJson() => _$SimpleChatRequestToJson(this); } @JsonSerializable(explicitToJson: true) class StatisticalDto { StatisticalDto({ this.totalClass, this.totalStudent, this.totalExam, this.totalQuestion, }); factory StatisticalDto.fromJson(Map json) => _$StatisticalDtoFromJson(json); @JsonKey(name: 'totalClass', includeIfNull: true) int? totalClass; @JsonKey(name: 'totalStudent', includeIfNull: true) int? totalStudent; @JsonKey(name: 'totalExam', includeIfNull: true) int? totalExam; @JsonKey(name: 'totalQuestion', includeIfNull: true) int? totalQuestion; static const fromJsonFactory = _$StatisticalDtoFromJson; static const toJsonFactory = _$StatisticalDtoToJson; Map toJson() => _$StatisticalDtoToJson(this); } @JsonSerializable(explicitToJson: true) class StatisticalDtoApiResponse { StatisticalDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory StatisticalDtoApiResponse.fromJson(Map json) => _$StatisticalDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) StatisticalDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$StatisticalDtoApiResponseFromJson; static const toJsonFactory = _$StatisticalDtoApiResponseToJson; Map toJson() => _$StatisticalDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class Subject { Subject({ this.id, this.name, }); factory Subject.fromJson(Map json) => _$SubjectFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'name', includeIfNull: true) String? name; static const fromJsonFactory = _$SubjectFromJson; static const toJsonFactory = _$SubjectToJson; Map toJson() => _$SubjectToJson(this); } @JsonSerializable(explicitToJson: true) class SystemEnums { SystemEnums({ this.code, this.values, this.items, }); factory SystemEnums.fromJson(Map json) => _$SystemEnumsFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'values', includeIfNull: true) Enum? values; @JsonKey(name: 'items', includeIfNull: true, defaultValue: []) List? items; static const fromJsonFactory = _$SystemEnumsFromJson; static const toJsonFactory = _$SystemEnumsToJson; Map toJson() => _$SystemEnumsToJson(this); } @JsonSerializable(explicitToJson: true) class SystemInitDto { SystemInitDto({ this.category, this.enums, this.userPermissions, this.currentObject, this.processingStatus, this.schoolLevels, this.school, this.academicYears, }); factory SystemInitDto.fromJson(Map json) => _$SystemInitDtoFromJson(json); @JsonKey( name: 'category', includeIfNull: true, defaultValue: []) List? category; @JsonKey(name: 'enums', includeIfNull: true, defaultValue: []) List? enums; @JsonKey( name: 'userPermissions', includeIfNull: true, defaultValue: []) List? userPermissions; @JsonKey(name: 'currentObject', includeIfNull: true) CurrentObjectDto? currentObject; @JsonKey(name: 'processingStatus', includeIfNull: true) Object? processingStatus; @JsonKey( name: 'schoolLevels', includeIfNull: true, defaultValue: []) List? schoolLevels; @JsonKey(name: 'school', includeIfNull: true) SchoolEntity? school; @JsonKey( name: 'academicYears', includeIfNull: true, defaultValue: []) List? academicYears; static const fromJsonFactory = _$SystemInitDtoFromJson; static const toJsonFactory = _$SystemInitDtoToJson; Map toJson() => _$SystemInitDtoToJson(this); } @JsonSerializable(explicitToJson: true) class SystemInitDtoApiResponse { SystemInitDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory SystemInitDtoApiResponse.fromJson(Map json) => _$SystemInitDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) SystemInitDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$SystemInitDtoApiResponseFromJson; static const toJsonFactory = _$SystemInitDtoApiResponseToJson; Map toJson() => _$SystemInitDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TagAddNewsDto { TagAddNewsDto({ this.tagId, this.newsIds, }); factory TagAddNewsDto.fromJson(Map json) => _$TagAddNewsDtoFromJson(json); @JsonKey(name: 'tagId', includeIfNull: true) int? tagId; @JsonKey(name: 'newsIds', includeIfNull: true, defaultValue: []) List? newsIds; static const fromJsonFactory = _$TagAddNewsDtoFromJson; static const toJsonFactory = _$TagAddNewsDtoToJson; Map toJson() => _$TagAddNewsDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TagDto { TagDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.name, this.unsignName, this.url, this.isHotTag, this.status, }); factory TagDto.fromJson(Map json) => _$TagDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'unsignName', includeIfNull: true) String? unsignName; @JsonKey(name: 'url', includeIfNull: true) String? url; @JsonKey(name: 'isHotTag', includeIfNull: true) bool? isHotTag; @JsonKey(name: 'status', includeIfNull: true) int? status; static const fromJsonFactory = _$TagDtoFromJson; static const toJsonFactory = _$TagDtoToJson; Map toJson() => _$TagDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TagDtoApiResponse { TagDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory TagDtoApiResponse.fromJson(Map json) => _$TagDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) TagDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TagDtoApiResponseFromJson; static const toJsonFactory = _$TagDtoApiResponseToJson; Map toJson() => _$TagDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TagDtoListApiResponse { TagDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory TagDtoListApiResponse.fromJson(Map json) => _$TagDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TagDtoListApiResponseFromJson; static const toJsonFactory = _$TagDtoListApiResponseToJson; Map toJson() => _$TagDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TagGetListQuery { TagGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.keyword, this.zoneId, this.type, }); factory TagGetListQuery.fromJson(Map json) => _$TagGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'zoneId', includeIfNull: true) int? zoneId; @JsonKey(name: 'type', includeIfNull: true) int? type; static const fromJsonFactory = _$TagGetListQueryFromJson; static const toJsonFactory = _$TagGetListQueryToJson; Map toJson() => _$TagGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class TagGetListWithNewsCountQuery { TagGetListWithNewsCountQuery({ this.onlyHotTags, }); factory TagGetListWithNewsCountQuery.fromJson(Map json) => _$TagGetListWithNewsCountQueryFromJson(json); @JsonKey(name: 'onlyHotTags', includeIfNull: true) bool? onlyHotTags; static const fromJsonFactory = _$TagGetListWithNewsCountQueryFromJson; static const toJsonFactory = _$TagGetListWithNewsCountQueryToJson; Map toJson() => _$TagGetListWithNewsCountQueryToJson(this); } @JsonSerializable(explicitToJson: true) class TagListDto { TagListDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.name, this.isHotTag, this.newsCount, this.zoneId, this.zone, this.url, }); factory TagListDto.fromJson(Map json) => _$TagListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'name', includeIfNull: true) String? name; @JsonKey(name: 'isHotTag', includeIfNull: true) bool? isHotTag; @JsonKey(name: 'newsCount', includeIfNull: true) int? newsCount; @JsonKey(name: 'zoneId', includeIfNull: true) int? zoneId; @JsonKey(name: 'zone', includeIfNull: true) String? zone; @JsonKey(name: 'url', includeIfNull: true) String? url; static const fromJsonFactory = _$TagListDtoFromJson; static const toJsonFactory = _$TagListDtoToJson; Map toJson() => _$TagListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TagListDtoFilterResult { TagListDtoFilterResult({ this.totalRows, this.data, }); factory TagListDtoFilterResult.fromJson(Map json) => _$TagListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$TagListDtoFilterResultFromJson; static const toJsonFactory = _$TagListDtoFilterResultToJson; Map toJson() => _$TagListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class TagListDtoFilterResultApiResponse { TagListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory TagListDtoFilterResultApiResponse.fromJson( Map json) => _$TagListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) TagListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TagListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$TagListDtoFilterResultApiResponseToJson; Map toJson() => _$TagListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TagListDtoListApiResponse { TagListDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory TagListDtoListApiResponse.fromJson(Map json) => _$TagListDtoListApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TagListDtoListApiResponseFromJson; static const toJsonFactory = _$TagListDtoListApiResponseToJson; Map toJson() => _$TagListDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherCreateDto { TeacherCreateDto({ this.userName, this.email, this.password, this.fullName, this.phoneNumber, this.roles, this.id, this.avatar, this.status, this.type, this.objectId, this.provinceId, this.birthDay, this.gender, this.identifierCode, this.isTemp, this.classId, this.className, this.ethnic, this.rowIndex, this.address, this.classListStr, this.classManageStr, this.subject, }); factory TeacherCreateDto.fromJson(Map json) => _$TeacherCreateDtoFromJson(json); @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'roles', includeIfNull: true, defaultValue: []) List? roles; @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'birthDay', includeIfNull: true) DateTime? birthDay; @JsonKey(name: 'gender', includeIfNull: true) int? gender; @JsonKey(name: 'identifierCode', includeIfNull: true) String? identifierCode; @JsonKey(name: 'isTemp', includeIfNull: true) bool? isTemp; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'className', includeIfNull: true) String? className; @JsonKey(name: 'ethnic', includeIfNull: true) String? ethnic; @JsonKey(name: 'rowIndex', includeIfNull: true) int? rowIndex; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'classListStr', includeIfNull: true) String? classListStr; @JsonKey(name: 'classManageStr', includeIfNull: true) String? classManageStr; @JsonKey(name: 'subject', includeIfNull: true) String? subject; static const fromJsonFactory = _$TeacherCreateDtoFromJson; static const toJsonFactory = _$TeacherCreateDtoToJson; Map toJson() => _$TeacherCreateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherFilterDto { TeacherFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.classId, this.keyword, this.status, this.isGetCountAssignExam, }); factory TeacherFilterDto.fromJson(Map json) => _$TeacherFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; @JsonKey(name: 'isGetCountAssignExam', includeIfNull: true) bool? isGetCountAssignExam; static const fromJsonFactory = _$TeacherFilterDtoFromJson; static const toJsonFactory = _$TeacherFilterDtoToJson; Map toJson() => _$TeacherFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherGetBySchoolDto { TeacherGetBySchoolDto({ this.id, this.userName, this.avatar, this.fullName, this.fullNameNonAccent, this.classCount, this.assignmentCount, this.assignmentMarkedCount, this.assignmentMarkedWaitingCount, }); factory TeacherGetBySchoolDto.fromJson(Map json) => _$TeacherGetBySchoolDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'fullNameNonAccent', includeIfNull: true) String? fullNameNonAccent; @JsonKey(name: 'classCount', includeIfNull: true) int? classCount; @JsonKey(name: 'assignmentCount', includeIfNull: true) int? assignmentCount; @JsonKey(name: 'assignmentMarkedCount', includeIfNull: true) int? assignmentMarkedCount; @JsonKey(name: 'assignmentMarkedWaitingCount', includeIfNull: true) int? assignmentMarkedWaitingCount; static const fromJsonFactory = _$TeacherGetBySchoolDtoFromJson; static const toJsonFactory = _$TeacherGetBySchoolDtoToJson; Map toJson() => _$TeacherGetBySchoolDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherGetBySchoolDtoFilterResult { TeacherGetBySchoolDtoFilterResult({ this.totalRows, this.data, }); factory TeacherGetBySchoolDtoFilterResult.fromJson( Map json) => _$TeacherGetBySchoolDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$TeacherGetBySchoolDtoFilterResultFromJson; static const toJsonFactory = _$TeacherGetBySchoolDtoFilterResultToJson; Map toJson() => _$TeacherGetBySchoolDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherGetBySchoolDtoFilterResultApiResponse { TeacherGetBySchoolDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory TeacherGetBySchoolDtoFilterResultApiResponse.fromJson( Map json) => _$TeacherGetBySchoolDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) TeacherGetBySchoolDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TeacherGetBySchoolDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$TeacherGetBySchoolDtoFilterResultApiResponseToJson; Map toJson() => _$TeacherGetBySchoolDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherGetBySchoolFilterDto { TeacherGetBySchoolFilterDto({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.schoolId, this.keyword, }); factory TeacherGetBySchoolFilterDto.fromJson(Map json) => _$TeacherGetBySchoolFilterDtoFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'schoolId', includeIfNull: true) int? schoolId; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; static const fromJsonFactory = _$TeacherGetBySchoolFilterDtoFromJson; static const toJsonFactory = _$TeacherGetBySchoolFilterDtoToJson; Map toJson() => _$TeacherGetBySchoolFilterDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherListDto { TeacherListDto({ this.id, this.userName, this.avatar, this.fullName, this.email, this.status, this.createdDate, this.subjectIds, this.subject, this.isManager, this.countAssignExam, this.countAssignExamMarkedWaiting, }); factory TeacherListDto.fromJson(Map json) => _$TeacherListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey( name: 'status', includeIfNull: true, toJson: classUserStatusEnumToJson, fromJson: classUserStatusEnumFromJson) enums.ClassUserStatusEnum? status; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'subjectIds', includeIfNull: true, defaultValue: []) List? subjectIds; @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'isManager', includeIfNull: true) bool? isManager; @JsonKey(name: 'countAssignExam', includeIfNull: true) int? countAssignExam; @JsonKey(name: 'countAssignExamMarkedWaiting', includeIfNull: true) int? countAssignExamMarkedWaiting; static const fromJsonFactory = _$TeacherListDtoFromJson; static const toJsonFactory = _$TeacherListDtoToJson; Map toJson() => _$TeacherListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherListDtoFilterResult { TeacherListDtoFilterResult({ this.totalRows, this.data, }); factory TeacherListDtoFilterResult.fromJson(Map json) => _$TeacherListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$TeacherListDtoFilterResultFromJson; static const toJsonFactory = _$TeacherListDtoFilterResultToJson; Map toJson() => _$TeacherListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherStaticByTypeExamDto { TeacherStaticByTypeExamDto({ this.type, this.total, this.markedCount, this.markedWaitingCount, this.averageScore, }); factory TeacherStaticByTypeExamDto.fromJson(Map json) => _$TeacherStaticByTypeExamDtoFromJson(json); @JsonKey( name: 'type', includeIfNull: true, toJson: assignExamTypeEnumToJson, fromJson: assignExamTypeEnumFromJson) enums.AssignExamTypeEnum? type; @JsonKey(name: 'total', includeIfNull: true) int? total; @JsonKey(name: 'markedCount', includeIfNull: true) int? markedCount; @JsonKey(name: 'markedWaitingCount', includeIfNull: true) int? markedWaitingCount; @JsonKey(name: 'averageScore', includeIfNull: true) double? averageScore; static const fromJsonFactory = _$TeacherStaticByTypeExamDtoFromJson; static const toJsonFactory = _$TeacherStaticByTypeExamDtoToJson; Map toJson() => _$TeacherStaticByTypeExamDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherStaticByTypeExamDtoListApiResponse { TeacherStaticByTypeExamDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory TeacherStaticByTypeExamDtoListApiResponse.fromJson( Map json) => _$TeacherStaticByTypeExamDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$TeacherStaticByTypeExamDtoListApiResponseFromJson; static const toJsonFactory = _$TeacherStaticByTypeExamDtoListApiResponseToJson; Map toJson() => _$TeacherStaticByTypeExamDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherUpdateManagerCommand { TeacherUpdateManagerCommand({ this.classId, this.userId, }); factory TeacherUpdateManagerCommand.fromJson(Map json) => _$TeacherUpdateManagerCommandFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; static const fromJsonFactory = _$TeacherUpdateManagerCommandFromJson; static const toJsonFactory = _$TeacherUpdateManagerCommandToJson; Map toJson() => _$TeacherUpdateManagerCommandToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherUpdateSubjectsCommand { TeacherUpdateSubjectsCommand({ this.classId, this.userId, this.subjectIds, }); factory TeacherUpdateSubjectsCommand.fromJson(Map json) => _$TeacherUpdateSubjectsCommandFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'subjectIds', includeIfNull: true, defaultValue: []) List? subjectIds; static const fromJsonFactory = _$TeacherUpdateSubjectsCommandFromJson; static const toJsonFactory = _$TeacherUpdateSubjectsCommandToJson; Map toJson() => _$TeacherUpdateSubjectsCommandToJson(this); } @JsonSerializable(explicitToJson: true) class TopAverageScoreDto { TopAverageScoreDto({ this.userId, this.avatar, this.fullName, this.averageScore, }); factory TopAverageScoreDto.fromJson(Map json) => _$TopAverageScoreDtoFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'averageScore', includeIfNull: true) double? averageScore; static const fromJsonFactory = _$TopAverageScoreDtoFromJson; static const toJsonFactory = _$TopAverageScoreDtoToJson; Map toJson() => _$TopAverageScoreDtoToJson(this); } @JsonSerializable(explicitToJson: true) class TopNeedsToDoHomeworkDto { TopNeedsToDoHomeworkDto({ this.userId, this.avatar, this.fullName, this.countExam, this.countExamDone, this.countExamNotStarted, }); factory TopNeedsToDoHomeworkDto.fromJson(Map json) => _$TopNeedsToDoHomeworkDtoFromJson(json); @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'countExam', includeIfNull: true) int? countExam; @JsonKey(name: 'countExamDone', includeIfNull: true) int? countExamDone; @JsonKey(name: 'countExamNotStarted', includeIfNull: true) int? countExamNotStarted; static const fromJsonFactory = _$TopNeedsToDoHomeworkDtoFromJson; static const toJsonFactory = _$TopNeedsToDoHomeworkDtoToJson; Map toJson() => _$TopNeedsToDoHomeworkDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UpdateAvatarDto { UpdateAvatarDto({ this.avatar, }); factory UpdateAvatarDto.fromJson(Map json) => _$UpdateAvatarDtoFromJson(json); @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; static const fromJsonFactory = _$UpdateAvatarDtoFromJson; static const toJsonFactory = _$UpdateAvatarDtoToJson; Map toJson() => _$UpdateAvatarDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UpdateInfoDto { UpdateInfoDto({ this.fullName, this.phoneNumber, this.avatar, }); factory UpdateInfoDto.fromJson(Map json) => _$UpdateInfoDtoFromJson(json); @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; static const fromJsonFactory = _$UpdateInfoDtoFromJson; static const toJsonFactory = _$UpdateInfoDtoToJson; Map toJson() => _$UpdateInfoDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserAnsweDataDto { UserAnsweDataDto({ this.id, this.content, this.itemId, this.isCorrect, this.mark, }); factory UserAnsweDataDto.fromJson(Map json) => _$UserAnsweDataDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) String? id; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'itemId', includeIfNull: true) String? itemId; @JsonKey(name: 'isCorrect', includeIfNull: true) bool? isCorrect; @JsonKey(name: 'mark', includeIfNull: true) double? mark; static const fromJsonFactory = _$UserAnsweDataDtoFromJson; static const toJsonFactory = _$UserAnsweDataDtoToJson; Map toJson() => _$UserAnsweDataDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserAnswerDto { UserAnswerDto({ this.id, this.questionId, this.parentId, this.content, this.isCorrect, this.mark, this.comment, this.commentBy, this.commentDate, this.answer, this.childAnswer, }); factory UserAnswerDto.fromJson(Map json) => _$UserAnswerDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'questionId', includeIfNull: true) int? questionId; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'isCorrect', includeIfNull: true) bool? isCorrect; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey(name: 'commentBy', includeIfNull: true) int? commentBy; @JsonKey(name: 'commentDate', includeIfNull: true) DateTime? commentDate; @JsonKey( name: 'answer', includeIfNull: true, defaultValue: []) List? answer; @JsonKey( name: 'childAnswer', includeIfNull: true, defaultValue: []) List? childAnswer; static const fromJsonFactory = _$UserAnswerDtoFromJson; static const toJsonFactory = _$UserAnswerDtoToJson; Map toJson() => _$UserAnswerDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserAnswerEntity { UserAnswerEntity({ this.id, this.userExamResultId, this.questionId, this.parentId, this.content, this.fileUrl, this.mark, this.isCorrect, this.answer, this.comment, this.commentBy, this.commentDate, this.lastModifiedBy, this.lastModifiedDate, }); factory UserAnswerEntity.fromJson(Map json) => _$UserAnswerEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userExamResultId', includeIfNull: true) int? userExamResultId; @JsonKey(name: 'questionId', includeIfNull: true) int? questionId; @JsonKey(name: 'parentId', includeIfNull: true) int? parentId; @JsonKey(name: 'content', includeIfNull: true) String? content; @JsonKey(name: 'fileUrl', includeIfNull: true) String? fileUrl; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'isCorrect', includeIfNull: true) bool? isCorrect; @JsonKey(name: 'answer', includeIfNull: true) String? answer; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey(name: 'commentBy', includeIfNull: true) int? commentBy; @JsonKey(name: 'commentDate', includeIfNull: true) DateTime? commentDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; static const fromJsonFactory = _$UserAnswerEntityFromJson; static const toJsonFactory = _$UserAnswerEntityToJson; Map toJson() => _$UserAnswerEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserClaimEntity { UserClaimEntity({ this.id, this.userId, this.claimType, this.claimValue, }); factory UserClaimEntity.fromJson(Map json) => _$UserClaimEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'claimType', includeIfNull: true) String? claimType; @JsonKey(name: 'claimValue', includeIfNull: true) String? claimValue; static const fromJsonFactory = _$UserClaimEntityFromJson; static const toJsonFactory = _$UserClaimEntityToJson; Map toJson() => _$UserClaimEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserCreateDto { UserCreateDto({ this.userName, this.email, this.password, this.fullName, this.phoneNumber, this.roles, this.id, this.avatar, this.status, this.type, this.objectId, this.provinceId, this.birthDay, this.gender, this.identifierCode, this.isTemp, this.classId, this.className, this.ethnic, this.rowIndex, this.address, }); factory UserCreateDto.fromJson(Map json) => _$UserCreateDtoFromJson(json); @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'password', includeIfNull: true) String? password; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'roles', includeIfNull: true, defaultValue: []) List? roles; @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'birthDay', includeIfNull: true) DateTime? birthDay; @JsonKey(name: 'gender', includeIfNull: true) int? gender; @JsonKey(name: 'identifierCode', includeIfNull: true) String? identifierCode; @JsonKey(name: 'isTemp', includeIfNull: true) bool? isTemp; @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'className', includeIfNull: true) String? className; @JsonKey(name: 'ethnic', includeIfNull: true) String? ethnic; @JsonKey(name: 'rowIndex', includeIfNull: true) int? rowIndex; @JsonKey(name: 'address', includeIfNull: true) String? address; static const fromJsonFactory = _$UserCreateDtoFromJson; static const toJsonFactory = _$UserCreateDtoToJson; Map toJson() => _$UserCreateDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserEntity { UserEntity({ this.id, this.userName, this.normalizedUserName, this.email, this.normalizedEmail, this.emailConfirmed, this.passwordHash, this.securityStamp, this.concurrencyStamp, this.phoneNumber, this.phoneNumberConfirmed, this.twoFactorEnabled, this.lockoutEnd, this.lockoutEnabled, this.accessFailedCount, this.claims, this.refreshTokens, this.avatar, this.fullName, this.fullNameNonAccent, this.lastLoginDate, this.createdDate, this.isDeleted, this.type, this.objectId, this.provinceId, this.isOnline, this.studentCode, this.birthDay, this.gender, this.identifierCode, this.address, this.ethnic, }); factory UserEntity.fromJson(Map json) => _$UserEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'normalizedUserName', includeIfNull: true) String? normalizedUserName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'normalizedEmail', includeIfNull: true) String? normalizedEmail; @JsonKey(name: 'emailConfirmed', includeIfNull: true) bool? emailConfirmed; @JsonKey(name: 'passwordHash', includeIfNull: true) String? passwordHash; @JsonKey(name: 'securityStamp', includeIfNull: true) String? securityStamp; @JsonKey(name: 'concurrencyStamp', includeIfNull: true) String? concurrencyStamp; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'phoneNumberConfirmed', includeIfNull: true) bool? phoneNumberConfirmed; @JsonKey(name: 'twoFactorEnabled', includeIfNull: true) bool? twoFactorEnabled; @JsonKey(name: 'lockoutEnd', includeIfNull: true) DateTime? lockoutEnd; @JsonKey(name: 'lockoutEnabled', includeIfNull: true) bool? lockoutEnabled; @JsonKey(name: 'accessFailedCount', includeIfNull: true) int? accessFailedCount; @JsonKey( name: 'claims', includeIfNull: true, defaultValue: []) List? claims; @JsonKey( name: 'refreshTokens', includeIfNull: true, defaultValue: []) List? refreshTokens; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'fullNameNonAccent', includeIfNull: true) String? fullNameNonAccent; @JsonKey(name: 'lastLoginDate', includeIfNull: true) DateTime? lastLoginDate; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey(name: 'provinceId', includeIfNull: true) int? provinceId; @JsonKey(name: 'isOnline', includeIfNull: true) bool? isOnline; @JsonKey(name: 'studentCode', includeIfNull: true) String? studentCode; @JsonKey(name: 'birthDay', includeIfNull: true) DateTime? birthDay; @JsonKey(name: 'gender', includeIfNull: true) int? gender; @JsonKey(name: 'identifierCode', includeIfNull: true) String? identifierCode; @JsonKey(name: 'address', includeIfNull: true) String? address; @JsonKey(name: 'ethnic', includeIfNull: true) String? ethnic; static const fromJsonFactory = _$UserEntityFromJson; static const toJsonFactory = _$UserEntityToJson; Map toJson() => _$UserEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserExamResultDetailWithMessageDto { UserExamResultDetailWithMessageDto({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.examId, this.assignExamId, this.userId, this.mark, this.duration, this.correctAnswerCount, this.correctQuestions, this.fromType, this.comment, this.status, this.userAnswer, this.examInfo, this.userInfo, this.message, this.teacherNote, this.isAssigner, this.canMarkScore, }); factory UserExamResultDetailWithMessageDto.fromJson( Map json) => _$UserExamResultDetailWithMessageDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'correctAnswerCount', includeIfNull: true) int? correctAnswerCount; @JsonKey(name: 'correctQuestions', includeIfNull: true) String? correctQuestions; @JsonKey(name: 'fromType', includeIfNull: true) int? fromType; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey( name: 'status', includeIfNull: true, toJson: userExamResultStatusToJson, fromJson: userExamResultStatusFromJson) enums.UserExamResultStatus? status; @JsonKey( name: 'userAnswer', includeIfNull: true, defaultValue: []) List? userAnswer; @JsonKey(name: 'examInfo', includeIfNull: true) ExamLearnDto? examInfo; @JsonKey(name: 'userInfo', includeIfNull: true) UserWithSimpleInfoDto? userInfo; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'teacherNote', includeIfNull: true) String? teacherNote; @JsonKey(name: 'isAssigner', includeIfNull: true) bool? isAssigner; @JsonKey(name: 'canMarkScore', includeIfNull: true) bool? canMarkScore; static const fromJsonFactory = _$UserExamResultDetailWithMessageDtoFromJson; static const toJsonFactory = _$UserExamResultDetailWithMessageDtoToJson; Map toJson() => _$UserExamResultDetailWithMessageDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserExamResultDto { UserExamResultDto({ this.startTime, this.duration, this.examId, this.assignExamId, this.userAnswer, this.fromType, }); factory UserExamResultDto.fromJson(Map json) => _$UserExamResultDtoFromJson(json); @JsonKey(name: 'startTime', includeIfNull: true) DateTime? startTime; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey( name: 'userAnswer', includeIfNull: true, defaultValue: []) List? userAnswer; @JsonKey(name: 'fromType', includeIfNull: true) int? fromType; static const fromJsonFactory = _$UserExamResultDtoFromJson; static const toJsonFactory = _$UserExamResultDtoToJson; Map toJson() => _$UserExamResultDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserExamResultEntity { UserExamResultEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.examId, this.assignExamId, this.userId, this.mark, this.duration, this.correctAnswerCount, this.correctQuestions, this.fromType, this.comment, this.status, this.userAnswer, }); factory UserExamResultEntity.fromJson(Map json) => _$UserExamResultEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'examId', includeIfNull: true) int? examId; @JsonKey(name: 'assignExamId', includeIfNull: true) int? assignExamId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'mark', includeIfNull: true) double? mark; @JsonKey(name: 'duration', includeIfNull: true) int? duration; @JsonKey(name: 'correctAnswerCount', includeIfNull: true) int? correctAnswerCount; @JsonKey(name: 'correctQuestions', includeIfNull: true) String? correctQuestions; @JsonKey(name: 'fromType', includeIfNull: true) int? fromType; @JsonKey(name: 'comment', includeIfNull: true) String? comment; @JsonKey( name: 'status', includeIfNull: true, toJson: userExamResultStatusToJson, fromJson: userExamResultStatusFromJson) enums.UserExamResultStatus? status; @JsonKey( name: 'userAnswer', includeIfNull: true, defaultValue: []) List? userAnswer; static const fromJsonFactory = _$UserExamResultEntityFromJson; static const toJsonFactory = _$UserExamResultEntityToJson; Map toJson() => _$UserExamResultEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserExamResultEntityApiResponse { UserExamResultEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory UserExamResultEntityApiResponse.fromJson(Map json) => _$UserExamResultEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) UserExamResultEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserExamResultEntityApiResponseFromJson; static const toJsonFactory = _$UserExamResultEntityApiResponseToJson; Map toJson() => _$UserExamResultEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class UserGetListQuery { UserGetListQuery({ this.sortExpression, this.pageSize, this.pageIndex, this.skip, this.notSkip, this.propertyIncludes, this.status, this.keyword, this.roleIds, this.type, this.objectId, }); factory UserGetListQuery.fromJson(Map json) => _$UserGetListQueryFromJson(json); @JsonKey(name: 'sortExpression', includeIfNull: true) String? sortExpression; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'skip', includeIfNull: true) int? skip; @JsonKey(name: 'notSkip', includeIfNull: true) int? notSkip; @JsonKey( name: 'propertyIncludes', includeIfNull: true, defaultValue: []) List? propertyIncludes; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'roleIds', includeIfNull: true, defaultValue: []) List? roleIds; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; static const fromJsonFactory = _$UserGetListQueryFromJson; static const toJsonFactory = _$UserGetListQueryToJson; Map toJson() => _$UserGetListQueryToJson(this); } @JsonSerializable(explicitToJson: true) class UserInfoDto { UserInfoDto({ this.id, this.userName, this.email, this.phoneNumber, this.fullName, this.avatar, this.lastLoginDate, this.type, this.objectId, }); factory UserInfoDto.fromJson(Map json) => _$UserInfoDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'lastLoginDate', includeIfNull: true) String? lastLoginDate; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; static const fromJsonFactory = _$UserInfoDtoFromJson; static const toJsonFactory = _$UserInfoDtoToJson; Map toJson() => _$UserInfoDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserInfoDtoApiResponse { UserInfoDtoApiResponse({ this.data, this.message, this.success, this.code, }); factory UserInfoDtoApiResponse.fromJson(Map json) => _$UserInfoDtoApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) UserInfoDto? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserInfoDtoApiResponseFromJson; static const toJsonFactory = _$UserInfoDtoApiResponseToJson; Map toJson() => _$UserInfoDtoApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class UserListDto { UserListDto({ this.id, this.userName, this.avatar, this.fullName, this.email, this.phoneNumber, this.status, this.createdDate, this.roles, this.type, this.objectId, this.objectName, }); factory UserListDto.fromJson(Map json) => _$UserListDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey(name: 'email', includeIfNull: true) String? email; @JsonKey(name: 'phoneNumber', includeIfNull: true) String? phoneNumber; @JsonKey(name: 'status', includeIfNull: true) int? status; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'roles', includeIfNull: true) String? roles; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'objectId', includeIfNull: true) int? objectId; @JsonKey(name: 'objectName', includeIfNull: true) String? objectName; static const fromJsonFactory = _$UserListDtoFromJson; static const toJsonFactory = _$UserListDtoToJson; Map toJson() => _$UserListDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserListDtoFilterResult { UserListDtoFilterResult({ this.totalRows, this.data, }); factory UserListDtoFilterResult.fromJson(Map json) => _$UserListDtoFilterResultFromJson(json); @JsonKey(name: 'totalRows', includeIfNull: true) int? totalRows; @JsonKey(name: 'data', includeIfNull: true, defaultValue: []) List? data; static const fromJsonFactory = _$UserListDtoFilterResultFromJson; static const toJsonFactory = _$UserListDtoFilterResultToJson; Map toJson() => _$UserListDtoFilterResultToJson(this); } @JsonSerializable(explicitToJson: true) class UserListDtoFilterResultApiResponse { UserListDtoFilterResultApiResponse({ this.data, this.message, this.success, this.code, }); factory UserListDtoFilterResultApiResponse.fromJson( Map json) => _$UserListDtoFilterResultApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) UserListDtoFilterResult? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserListDtoFilterResultApiResponseFromJson; static const toJsonFactory = _$UserListDtoFilterResultApiResponseToJson; Map toJson() => _$UserListDtoFilterResultApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class UserMobileTokenEntity { UserMobileTokenEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.deviceToken, this.os, this.appId, }); factory UserMobileTokenEntity.fromJson(Map json) => _$UserMobileTokenEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'deviceToken', includeIfNull: true) String? deviceToken; @JsonKey(name: 'os', includeIfNull: true) String? os; @JsonKey(name: 'appId', includeIfNull: true) int? appId; static const fromJsonFactory = _$UserMobileTokenEntityFromJson; static const toJsonFactory = _$UserMobileTokenEntityToJson; Map toJson() => _$UserMobileTokenEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserMobileTokenEntityApiResponse { UserMobileTokenEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory UserMobileTokenEntityApiResponse.fromJson( Map json) => _$UserMobileTokenEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) UserMobileTokenEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserMobileTokenEntityApiResponseFromJson; static const toJsonFactory = _$UserMobileTokenEntityApiResponseToJson; Map toJson() => _$UserMobileTokenEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class UserMobileTokenUpdateCommand { UserMobileTokenUpdateCommand({ this.token, }); factory UserMobileTokenUpdateCommand.fromJson(Map json) => _$UserMobileTokenUpdateCommandFromJson(json); @JsonKey(name: 'token', includeIfNull: true) UserMobileTokenEntity? token; static const fromJsonFactory = _$UserMobileTokenUpdateCommandFromJson; static const toJsonFactory = _$UserMobileTokenUpdateCommandToJson; Map toJson() => _$UserMobileTokenUpdateCommandToJson(this); } @JsonSerializable(explicitToJson: true) class UserWebTokenDeleteCommand { UserWebTokenDeleteCommand({ this.id, }); factory UserWebTokenDeleteCommand.fromJson(Map json) => _$UserWebTokenDeleteCommandFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; static const fromJsonFactory = _$UserWebTokenDeleteCommandFromJson; static const toJsonFactory = _$UserWebTokenDeleteCommandToJson; Map toJson() => _$UserWebTokenDeleteCommandToJson(this); } @JsonSerializable(explicitToJson: true) class UserWebTokenEntity { UserWebTokenEntity({ this.id, this.createdBy, this.createdDate, this.lastModifiedBy, this.lastModifiedDate, this.isDeleted, this.userId, this.pushEndPoint, this.pushP256DH, this.pushAuth, this.appId, }); factory UserWebTokenEntity.fromJson(Map json) => _$UserWebTokenEntityFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'createdBy', includeIfNull: true) int? createdBy; @JsonKey(name: 'createdDate', includeIfNull: true) DateTime? createdDate; @JsonKey(name: 'lastModifiedBy', includeIfNull: true) int? lastModifiedBy; @JsonKey(name: 'lastModifiedDate', includeIfNull: true) DateTime? lastModifiedDate; @JsonKey(name: 'isDeleted', includeIfNull: true) bool? isDeleted; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'pushEndPoint', includeIfNull: true) String? pushEndPoint; @JsonKey(name: 'pushP256DH', includeIfNull: true) String? pushP256DH; @JsonKey(name: 'pushAuth', includeIfNull: true) String? pushAuth; @JsonKey(name: 'appId', includeIfNull: true) int? appId; static const fromJsonFactory = _$UserWebTokenEntityFromJson; static const toJsonFactory = _$UserWebTokenEntityToJson; Map toJson() => _$UserWebTokenEntityToJson(this); } @JsonSerializable(explicitToJson: true) class UserWebTokenEntityApiResponse { UserWebTokenEntityApiResponse({ this.data, this.message, this.success, this.code, }); factory UserWebTokenEntityApiResponse.fromJson(Map json) => _$UserWebTokenEntityApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) UserWebTokenEntity? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserWebTokenEntityApiResponseFromJson; static const toJsonFactory = _$UserWebTokenEntityApiResponseToJson; Map toJson() => _$UserWebTokenEntityApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class UserWebTokenUpdateCommand { UserWebTokenUpdateCommand({ this.token, }); factory UserWebTokenUpdateCommand.fromJson(Map json) => _$UserWebTokenUpdateCommandFromJson(json); @JsonKey(name: 'token', includeIfNull: true) UserWebTokenEntity? token; static const fromJsonFactory = _$UserWebTokenUpdateCommandFromJson; static const toJsonFactory = _$UserWebTokenUpdateCommandToJson; Map toJson() => _$UserWebTokenUpdateCommandToJson(this); } @JsonSerializable(explicitToJson: true) class UserWithSimpleInfoDto { UserWithSimpleInfoDto({ this.id, this.userName, this.avatar, this.fullName, this.type, this.isOnline, }); factory UserWithSimpleInfoDto.fromJson(Map json) => _$UserWithSimpleInfoDtoFromJson(json); @JsonKey(name: 'id', includeIfNull: true) int? id; @JsonKey(name: 'userName', includeIfNull: true) String? userName; @JsonKey(name: 'avatar', includeIfNull: true) String? avatar; @JsonKey(name: 'fullName', includeIfNull: true) String? fullName; @JsonKey( name: 'type', includeIfNull: true, toJson: userTypeEnumToJson, fromJson: userTypeEnumFromJson) enums.UserTypeEnum? type; @JsonKey(name: 'isOnline', includeIfNull: true) bool? isOnline; static const fromJsonFactory = _$UserWithSimpleInfoDtoFromJson; static const toJsonFactory = _$UserWithSimpleInfoDtoToJson; Map toJson() => _$UserWithSimpleInfoDtoToJson(this); } @JsonSerializable(explicitToJson: true) class UserWithSimpleInfoDtoListApiResponse { UserWithSimpleInfoDtoListApiResponse({ this.data, this.message, this.success, this.code, }); factory UserWithSimpleInfoDtoListApiResponse.fromJson( Map json) => _$UserWithSimpleInfoDtoListApiResponseFromJson(json); @JsonKey( name: 'data', includeIfNull: true, defaultValue: []) List? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$UserWithSimpleInfoDtoListApiResponseFromJson; static const toJsonFactory = _$UserWithSimpleInfoDtoListApiResponseToJson; Map toJson() => _$UserWithSimpleInfoDtoListApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class VapidDetails { VapidDetails({ this.subject, this.publicKey, this.privateKey, this.expiration, }); factory VapidDetails.fromJson(Map json) => _$VapidDetailsFromJson(json); @JsonKey(name: 'subject', includeIfNull: true) String? subject; @JsonKey(name: 'publicKey', includeIfNull: true) String? publicKey; @JsonKey(name: 'privateKey', includeIfNull: true) String? privateKey; @JsonKey(name: 'expiration', includeIfNull: true) int? expiration; static const fromJsonFactory = _$VapidDetailsFromJson; static const toJsonFactory = _$VapidDetailsToJson; Map toJson() => _$VapidDetailsToJson(this); } @JsonSerializable(explicitToJson: true) class VapidDetailsApiResponse { VapidDetailsApiResponse({ this.data, this.message, this.success, this.code, }); factory VapidDetailsApiResponse.fromJson(Map json) => _$VapidDetailsApiResponseFromJson(json); @JsonKey(name: 'data', includeIfNull: true) VapidDetails? data; @JsonKey(name: 'message', includeIfNull: true) String? message; @JsonKey(name: 'success', includeIfNull: true) bool? success; @JsonKey( name: 'code', includeIfNull: true, toJson: errorCodeEnumToJson, fromJson: errorCodeEnumFromJson) enums.ErrorCodeEnum? code; static const fromJsonFactory = _$VapidDetailsApiResponseFromJson; static const toJsonFactory = _$VapidDetailsApiResponseToJson; Map toJson() => _$VapidDetailsApiResponseToJson(this); } @JsonSerializable(explicitToJson: true) class WeatherForecast { WeatherForecast({ this.date, this.temperatureC, this.temperatureF, this.summary, }); factory WeatherForecast.fromJson(Map json) => _$WeatherForecastFromJson(json); @JsonKey(name: 'date', includeIfNull: true) DateTime? date; @JsonKey(name: 'temperatureC', includeIfNull: true) int? temperatureC; @JsonKey(name: 'temperatureF', includeIfNull: true) int? temperatureF; @JsonKey(name: 'summary', includeIfNull: true) String? summary; static const fromJsonFactory = _$WeatherForecastFromJson; static const toJsonFactory = _$WeatherForecastToJson; Map toJson() => _$WeatherForecastToJson(this); } @JsonSerializable(explicitToJson: true) class AiPromptByCodeCodeRequest { AiPromptByCodeCodeRequest({ this.code, this.grade, this.categoryId, }); factory AiPromptByCodeCodeRequest.fromJson(Map json) => _$AiPromptByCodeCodeRequestFromJson(json); @JsonKey(name: 'code', includeIfNull: true) String? code; @JsonKey(name: 'grade', includeIfNull: true) int? grade; @JsonKey(name: 'categoryId', includeIfNull: true) int? categoryId; static const fromJsonFactory = _$AiPromptByCodeCodeRequestFromJson; static const toJsonFactory = _$AiPromptByCodeCodeRequestToJson; Map toJson() => _$AiPromptByCodeCodeRequestToJson(this); } @JsonSerializable(explicitToJson: true) class ChatListChatGroupOfUserRequest { ChatListChatGroupOfUserRequest({ this.keyword, this.pageIndex, this.pageSize, }); factory ChatListChatGroupOfUserRequest.fromJson(Map json) => _$ChatListChatGroupOfUserRequestFromJson(json); @JsonKey(name: 'keyword', includeIfNull: true) String? keyword; @JsonKey(name: 'pageIndex', includeIfNull: true) int? pageIndex; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; static const fromJsonFactory = _$ChatListChatGroupOfUserRequestFromJson; static const toJsonFactory = _$ChatListChatGroupOfUserRequestToJson; Map toJson() => _$ChatListChatGroupOfUserRequestToJson(this); } @JsonSerializable(explicitToJson: true) class ChatGetListMessageByGroupidRequest { ChatGetListMessageByGroupidRequest({ this.chatGroupId, this.skipSize, this.pageSize, }); factory ChatGetListMessageByGroupidRequest.fromJson( Map json) => _$ChatGetListMessageByGroupidRequestFromJson(json); @JsonKey(name: 'chatGroupId', includeIfNull: true) int? chatGroupId; @JsonKey(name: 'skipSize', includeIfNull: true) int? skipSize; @JsonKey(name: 'pageSize', includeIfNull: true) int? pageSize; static const fromJsonFactory = _$ChatGetListMessageByGroupidRequestFromJson; static const toJsonFactory = _$ChatGetListMessageByGroupidRequestToJson; Map toJson() => _$ChatGetListMessageByGroupidRequestToJson(this); } @JsonSerializable(explicitToJson: true) class PupilPupilStaticRequest { PupilPupilStaticRequest({ this.classId, this.userId, this.subjectId, }); factory PupilPupilStaticRequest.fromJson(Map json) => _$PupilPupilStaticRequestFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; static const fromJsonFactory = _$PupilPupilStaticRequestFromJson; static const toJsonFactory = _$PupilPupilStaticRequestToJson; Map toJson() => _$PupilPupilStaticRequestToJson(this); } @JsonSerializable(explicitToJson: true) class PupilPupilStaticByTypeExamRequest { PupilPupilStaticByTypeExamRequest({ this.classId, this.userId, this.subjectId, }); factory PupilPupilStaticByTypeExamRequest.fromJson( Map json) => _$PupilPupilStaticByTypeExamRequestFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; static const fromJsonFactory = _$PupilPupilStaticByTypeExamRequestFromJson; static const toJsonFactory = _$PupilPupilStaticByTypeExamRequestToJson; Map toJson() => _$PupilPupilStaticByTypeExamRequestToJson(this); } @JsonSerializable(explicitToJson: true) class TeacherStaticByTypeExamRequest { TeacherStaticByTypeExamRequest({ this.classId, this.userId, this.subjectId, }); factory TeacherStaticByTypeExamRequest.fromJson(Map json) => _$TeacherStaticByTypeExamRequestFromJson(json); @JsonKey(name: 'classId', includeIfNull: true) int? classId; @JsonKey(name: 'userId', includeIfNull: true) int? userId; @JsonKey(name: 'subjectId', includeIfNull: true) int? subjectId; static const fromJsonFactory = _$TeacherStaticByTypeExamRequestFromJson; static const toJsonFactory = _$TeacherStaticByTypeExamRequestToJson; Map toJson() => _$TeacherStaticByTypeExamRequestToJson(this); } @JsonSerializable(explicitToJson: true) class UserExamResultChangeMarkRequest { UserExamResultChangeMarkRequest({ this.userExamResultId, this.comment, }); factory UserExamResultChangeMarkRequest.fromJson(Map json) => _$UserExamResultChangeMarkRequestFromJson(json); @JsonKey(name: 'userExamResultId', includeIfNull: true) int? userExamResultId; @JsonKey(name: 'comment', includeIfNull: true) String? comment; static const fromJsonFactory = _$UserExamResultChangeMarkRequestFromJson; static const toJsonFactory = _$UserExamResultChangeMarkRequestToJson; Map toJson() => _$UserExamResultChangeMarkRequestToJson(this); } int? assignExamStatusEnumToJson( enums.AssignExamStatusEnum? assignExamStatusEnum) { return assignExamStatusEnum?.index; } enums.AssignExamStatusEnum assignExamStatusEnumFromJson( int? assignExamStatusEnum) { if (assignExamStatusEnum == null) { return enums.AssignExamStatusEnum.swaggerGeneratedUnknown; } return enums.$AssignExamStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == assignExamStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.AssignExamStatusEnum.swaggerGeneratedUnknown, '')) .key; } List assignExamStatusEnumListToJson( List? assignExamStatusEnum) { if (assignExamStatusEnum == null) { return []; } return assignExamStatusEnum .map((e) => e.index) //enums.$AssignExamStatusEnumMap[e]! .toList(); } List assignExamStatusEnumListFromJson( List? assignExamStatusEnum) { if (assignExamStatusEnum == null) { return []; } return assignExamStatusEnum .map((e) => assignExamStatusEnumFromJson(e)) //.toString() .toList(); } int? assignExamTypeEnumToJson(enums.AssignExamTypeEnum? assignExamTypeEnum) { return assignExamTypeEnum?.index; } enums.AssignExamTypeEnum assignExamTypeEnumFromJson(int? assignExamTypeEnum) { if (assignExamTypeEnum == null) { return enums.AssignExamTypeEnum.swaggerGeneratedUnknown; } return enums.$AssignExamTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == assignExamTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.AssignExamTypeEnum.swaggerGeneratedUnknown, '')) .key; } List assignExamTypeEnumListToJson( List? assignExamTypeEnum) { if (assignExamTypeEnum == null) { return []; } return assignExamTypeEnum .map((e) => e.index) //enums.$AssignExamTypeEnumMap[e]! .toList(); } List assignExamTypeEnumListFromJson( List? assignExamTypeEnum) { if (assignExamTypeEnum == null) { return []; } return assignExamTypeEnum .map((e) => assignExamTypeEnumFromJson(e)) //.toString() .toList(); } int? assignExamUserStatusEnumToJson( enums.AssignExamUserStatusEnum? assignExamUserStatusEnum) { return assignExamUserStatusEnum?.index; } enums.AssignExamUserStatusEnum assignExamUserStatusEnumFromJson( int? assignExamUserStatusEnum) { if (assignExamUserStatusEnum == null) { return enums.AssignExamUserStatusEnum.swaggerGeneratedUnknown; } return enums.$AssignExamUserStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == assignExamUserStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.AssignExamUserStatusEnum.swaggerGeneratedUnknown, '')) .key; } List assignExamUserStatusEnumListToJson( List? assignExamUserStatusEnum) { if (assignExamUserStatusEnum == null) { return []; } return assignExamUserStatusEnum .map((e) => e.index) //enums.$AssignExamUserStatusEnumMap[e]! .toList(); } List assignExamUserStatusEnumListFromJson( List? assignExamUserStatusEnum) { if (assignExamUserStatusEnum == null) { return []; } return assignExamUserStatusEnum .map((e) => assignExamUserStatusEnumFromJson(e)) //.toString() .toList(); } int? attendanceStatusEnumToJson( enums.AttendanceStatusEnum? attendanceStatusEnum) { return attendanceStatusEnum?.index; } enums.AttendanceStatusEnum attendanceStatusEnumFromJson( int? attendanceStatusEnum) { if (attendanceStatusEnum == null) { return enums.AttendanceStatusEnum.swaggerGeneratedUnknown; } return enums.$AttendanceStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == attendanceStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.AttendanceStatusEnum.swaggerGeneratedUnknown, '')) .key; } List attendanceStatusEnumListToJson( List? attendanceStatusEnum) { if (attendanceStatusEnum == null) { return []; } return attendanceStatusEnum .map((e) => e.index) //enums.$AttendanceStatusEnumMap[e]! .toList(); } List attendanceStatusEnumListFromJson( List? attendanceStatusEnum) { if (attendanceStatusEnum == null) { return []; } return attendanceStatusEnum .map((e) => attendanceStatusEnumFromJson(e)) //.toString() .toList(); } int? classListSearchTypeEnumToJson( enums.ClassListSearchTypeEnum? classListSearchTypeEnum) { return classListSearchTypeEnum?.index; } enums.ClassListSearchTypeEnum classListSearchTypeEnumFromJson( int? classListSearchTypeEnum) { if (classListSearchTypeEnum == null) { return enums.ClassListSearchTypeEnum.swaggerGeneratedUnknown; } return enums.$ClassListSearchTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == classListSearchTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ClassListSearchTypeEnum.swaggerGeneratedUnknown, '')) .key; } List classListSearchTypeEnumListToJson( List? classListSearchTypeEnum) { if (classListSearchTypeEnum == null) { return []; } return classListSearchTypeEnum .map((e) => e.index) //enums.$ClassListSearchTypeEnumMap[e]! .toList(); } List classListSearchTypeEnumListFromJson( List? classListSearchTypeEnum) { if (classListSearchTypeEnum == null) { return []; } return classListSearchTypeEnum .map((e) => classListSearchTypeEnumFromJson(e)) //.toString() .toList(); } int? classStatusEnumToJson(enums.ClassStatusEnum? classStatusEnum) { return classStatusEnum?.index; } enums.ClassStatusEnum classStatusEnumFromJson(int? classStatusEnum) { if (classStatusEnum == null) { return enums.ClassStatusEnum.swaggerGeneratedUnknown; } return enums.$ClassStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == classStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ClassStatusEnum.swaggerGeneratedUnknown, '')) .key; } List classStatusEnumListToJson( List? classStatusEnum) { if (classStatusEnum == null) { return []; } return classStatusEnum .map((e) => e.index) //enums.$ClassStatusEnumMap[e]! .toList(); } List classStatusEnumListFromJson(List? classStatusEnum) { if (classStatusEnum == null) { return []; } return classStatusEnum .map((e) => classStatusEnumFromJson(e)) //.toString() .toList(); } int? classTypeEnumToJson(enums.ClassTypeEnum? classTypeEnum) { return classTypeEnum?.index; } enums.ClassTypeEnum classTypeEnumFromJson(int? classTypeEnum) { if (classTypeEnum == null) { return enums.ClassTypeEnum.swaggerGeneratedUnknown; } return enums.$ClassTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == classTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ClassTypeEnum.swaggerGeneratedUnknown, '')) .key; } List classTypeEnumListToJson(List? classTypeEnum) { if (classTypeEnum == null) { return []; } return classTypeEnum .map((e) => e.index) //enums.$ClassTypeEnumMap[e]! .toList(); } List classTypeEnumListFromJson(List? classTypeEnum) { if (classTypeEnum == null) { return []; } return classTypeEnum .map((e) => classTypeEnumFromJson(e)) //.toString() .toList(); } int? classUserRoleEnumToJson(enums.ClassUserRoleEnum? classUserRoleEnum) { return classUserRoleEnum?.index; } enums.ClassUserRoleEnum classUserRoleEnumFromJson(int? classUserRoleEnum) { if (classUserRoleEnum == null) { return enums.ClassUserRoleEnum.swaggerGeneratedUnknown; } return enums.$ClassUserRoleEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == classUserRoleEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ClassUserRoleEnum.swaggerGeneratedUnknown, '')) .key; } List classUserRoleEnumListToJson( List? classUserRoleEnum) { if (classUserRoleEnum == null) { return []; } return classUserRoleEnum .map((e) => e.index) //enums.$ClassUserRoleEnumMap[e]! .toList(); } List classUserRoleEnumListFromJson( List? classUserRoleEnum) { if (classUserRoleEnum == null) { return []; } return classUserRoleEnum .map((e) => classUserRoleEnumFromJson(e)) //.toString() .toList(); } int? classUserStatusEnumToJson(enums.ClassUserStatusEnum? classUserStatusEnum) { return classUserStatusEnum?.index; } enums.ClassUserStatusEnum classUserStatusEnumFromJson( int? classUserStatusEnum) { if (classUserStatusEnum == null) { return enums.ClassUserStatusEnum.swaggerGeneratedUnknown; } return enums.$ClassUserStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == classUserStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ClassUserStatusEnum.swaggerGeneratedUnknown, '')) .key; } List classUserStatusEnumListToJson( List? classUserStatusEnum) { if (classUserStatusEnum == null) { return []; } return classUserStatusEnum .map((e) => e.index) //enums.$ClassUserStatusEnumMap[e]! .toList(); } List classUserStatusEnumListFromJson( List? classUserStatusEnum) { if (classUserStatusEnum == null) { return []; } return classUserStatusEnum .map((e) => classUserStatusEnumFromJson(e)) //.toString() .toList(); } int? commonStatusEnumToJson(enums.CommonStatusEnum? commonStatusEnum) { return commonStatusEnum?.index; } enums.CommonStatusEnum commonStatusEnumFromJson(int? commonStatusEnum) { if (commonStatusEnum == null) { return enums.CommonStatusEnum.swaggerGeneratedUnknown; } return enums.$CommonStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == commonStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.CommonStatusEnum.swaggerGeneratedUnknown, '')) .key; } List commonStatusEnumListToJson( List? commonStatusEnum) { if (commonStatusEnum == null) { return []; } return commonStatusEnum .map((e) => e.index) //enums.$CommonStatusEnumMap[e]! .toList(); } List commonStatusEnumListFromJson( List? commonStatusEnum) { if (commonStatusEnum == null) { return []; } return commonStatusEnum .map((e) => commonStatusEnumFromJson(e)) //.toString() .toList(); } int? consultationStatusEnumToJson( enums.ConsultationStatusEnum? consultationStatusEnum) { return consultationStatusEnum?.index; } enums.ConsultationStatusEnum consultationStatusEnumFromJson( int? consultationStatusEnum) { if (consultationStatusEnum == null) { return enums.ConsultationStatusEnum.swaggerGeneratedUnknown; } return enums.$ConsultationStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == consultationStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ConsultationStatusEnum.swaggerGeneratedUnknown, '')) .key; } List consultationStatusEnumListToJson( List? consultationStatusEnum) { if (consultationStatusEnum == null) { return []; } return consultationStatusEnum .map((e) => e.index) //enums.$ConsultationStatusEnumMap[e]! .toList(); } List consultationStatusEnumListFromJson( List? consultationStatusEnum) { if (consultationStatusEnum == null) { return []; } return consultationStatusEnum .map((e) => consultationStatusEnumFromJson(e)) //.toString() .toList(); } int? contactStatusEnumToJson(enums.ContactStatusEnum? contactStatusEnum) { return contactStatusEnum?.index; } enums.ContactStatusEnum contactStatusEnumFromJson(int? contactStatusEnum) { if (contactStatusEnum == null) { return enums.ContactStatusEnum.swaggerGeneratedUnknown; } return enums.$ContactStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == contactStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ContactStatusEnum.swaggerGeneratedUnknown, '')) .key; } List contactStatusEnumListToJson( List? contactStatusEnum) { if (contactStatusEnum == null) { return []; } return contactStatusEnum .map((e) => e.index) //enums.$ContactStatusEnumMap[e]! .toList(); } List contactStatusEnumListFromJson( List? contactStatusEnum) { if (contactStatusEnum == null) { return []; } return contactStatusEnum .map((e) => contactStatusEnumFromJson(e)) //.toString() .toList(); } int? errorCodeEnumToJson(enums.ErrorCodeEnum? errorCodeEnum) { return errorCodeEnum?.index; } enums.ErrorCodeEnum errorCodeEnumFromJson(int? errorCodeEnum) { if (errorCodeEnum == null) { return enums.ErrorCodeEnum.swaggerGeneratedUnknown; } return enums.$ErrorCodeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == errorCodeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ErrorCodeEnum.swaggerGeneratedUnknown, '')) .key; } List errorCodeEnumListToJson(List? errorCodeEnum) { if (errorCodeEnum == null) { return []; } return errorCodeEnum .map((e) => e.index) //enums.$ErrorCodeEnumMap[e]! .toList(); } List errorCodeEnumListFromJson(List? errorCodeEnum) { if (errorCodeEnum == null) { return []; } return errorCodeEnum .map((e) => errorCodeEnumFromJson(e)) //.toString() .toList(); } int? examFileChoiceTypeEnumToJson( enums.ExamFileChoiceTypeEnum? examFileChoiceTypeEnum) { return examFileChoiceTypeEnum?.index; } enums.ExamFileChoiceTypeEnum examFileChoiceTypeEnumFromJson( int? examFileChoiceTypeEnum) { if (examFileChoiceTypeEnum == null) { return enums.ExamFileChoiceTypeEnum.swaggerGeneratedUnknown; } return enums.$ExamFileChoiceTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == examFileChoiceTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ExamFileChoiceTypeEnum.swaggerGeneratedUnknown, '')) .key; } List examFileChoiceTypeEnumListToJson( List? examFileChoiceTypeEnum) { if (examFileChoiceTypeEnum == null) { return []; } return examFileChoiceTypeEnum .map((e) => e.index) //enums.$ExamFileChoiceTypeEnumMap[e]! .toList(); } List examFileChoiceTypeEnumListFromJson( List? examFileChoiceTypeEnum) { if (examFileChoiceTypeEnum == null) { return []; } return examFileChoiceTypeEnum .map((e) => examFileChoiceTypeEnumFromJson(e)) //.toString() .toList(); } int? examFormatEnumToJson(enums.ExamFormatEnum? examFormatEnum) { return examFormatEnum?.index; } enums.ExamFormatEnum examFormatEnumFromJson(int? examFormatEnum) { if (examFormatEnum == null) { return enums.ExamFormatEnum.swaggerGeneratedUnknown; } return enums.$ExamFormatEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == examFormatEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ExamFormatEnum.swaggerGeneratedUnknown, '')) .key; } List examFormatEnumListToJson(List? examFormatEnum) { if (examFormatEnum == null) { return []; } return examFormatEnum .map((e) => e.index) //enums.$ExamFormatEnumMap[e]! .toList(); } List examFormatEnumListFromJson(List? examFormatEnum) { if (examFormatEnum == null) { return []; } return examFormatEnum .map((e) => examFormatEnumFromJson(e)) //.toString() .toList(); } int? examStatusEnumToJson(enums.ExamStatusEnum? examStatusEnum) { return examStatusEnum?.index; } enums.ExamStatusEnum examStatusEnumFromJson(int? examStatusEnum) { if (examStatusEnum == null) { return enums.ExamStatusEnum.swaggerGeneratedUnknown; } return enums.$ExamStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == examStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ExamStatusEnum.swaggerGeneratedUnknown, '')) .key; } List examStatusEnumListToJson(List? examStatusEnum) { if (examStatusEnum == null) { return []; } return examStatusEnum .map((e) => e.index) //enums.$ExamStatusEnumMap[e]! .toList(); } List examStatusEnumListFromJson(List? examStatusEnum) { if (examStatusEnum == null) { return []; } return examStatusEnum .map((e) => examStatusEnumFromJson(e)) //.toString() .toList(); } int? examTypeEnumToJson(enums.ExamTypeEnum? examTypeEnum) { return examTypeEnum?.index; } enums.ExamTypeEnum examTypeEnumFromJson(int? examTypeEnum) { if (examTypeEnum == null) { return enums.ExamTypeEnum.swaggerGeneratedUnknown; } return enums.$ExamTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == examTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ExamTypeEnum.swaggerGeneratedUnknown, '')) .key; } List examTypeEnumListToJson(List? examTypeEnum) { if (examTypeEnum == null) { return []; } return examTypeEnum .map((e) => e.index) //enums.$ExamTypeEnumMap[e]! .toList(); } List examTypeEnumListFromJson(List? examTypeEnum) { if (examTypeEnum == null) { return []; } return examTypeEnum .map((e) => examTypeEnumFromJson(e)) //.toString() .toList(); } int? fileStatusEnumToJson(enums.FileStatusEnum? fileStatusEnum) { return fileStatusEnum?.index; } enums.FileStatusEnum fileStatusEnumFromJson(int? fileStatusEnum) { if (fileStatusEnum == null) { return enums.FileStatusEnum.swaggerGeneratedUnknown; } return enums.$FileStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == fileStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.FileStatusEnum.swaggerGeneratedUnknown, '')) .key; } List fileStatusEnumListToJson(List? fileStatusEnum) { if (fileStatusEnum == null) { return []; } return fileStatusEnum .map((e) => e.index) //enums.$FileStatusEnumMap[e]! .toList(); } List fileStatusEnumListFromJson(List? fileStatusEnum) { if (fileStatusEnum == null) { return []; } return fileStatusEnum .map((e) => fileStatusEnumFromJson(e)) //.toString() .toList(); } int? lessonTypeEnumToJson(enums.LessonTypeEnum? lessonTypeEnum) { return lessonTypeEnum?.index; } enums.LessonTypeEnum lessonTypeEnumFromJson(int? lessonTypeEnum) { if (lessonTypeEnum == null) { return enums.LessonTypeEnum.swaggerGeneratedUnknown; } return enums.$LessonTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == lessonTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.LessonTypeEnum.swaggerGeneratedUnknown, '')) .key; } List lessonTypeEnumListToJson(List? lessonTypeEnum) { if (lessonTypeEnum == null) { return []; } return lessonTypeEnum .map((e) => e.index) //enums.$LessonTypeEnumMap[e]! .toList(); } List lessonTypeEnumListFromJson(List? lessonTypeEnum) { if (lessonTypeEnum == null) { return []; } return lessonTypeEnum .map((e) => lessonTypeEnumFromJson(e)) //.toString() .toList(); } int? localityStatusEnumToJson(enums.LocalityStatusEnum? localityStatusEnum) { return localityStatusEnum?.index; } enums.LocalityStatusEnum localityStatusEnumFromJson(int? localityStatusEnum) { if (localityStatusEnum == null) { return enums.LocalityStatusEnum.swaggerGeneratedUnknown; } return enums.$LocalityStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == localityStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.LocalityStatusEnum.swaggerGeneratedUnknown, '')) .key; } List localityStatusEnumListToJson( List? localityStatusEnum) { if (localityStatusEnum == null) { return []; } return localityStatusEnum .map((e) => e.index) //enums.$LocalityStatusEnumMap[e]! .toList(); } List localityStatusEnumListFromJson( List? localityStatusEnum) { if (localityStatusEnum == null) { return []; } return localityStatusEnum .map((e) => localityStatusEnumFromJson(e)) //.toString() .toList(); } int? localityTypeEnumToJson(enums.LocalityTypeEnum? localityTypeEnum) { return localityTypeEnum?.index; } enums.LocalityTypeEnum localityTypeEnumFromJson(int? localityTypeEnum) { if (localityTypeEnum == null) { return enums.LocalityTypeEnum.swaggerGeneratedUnknown; } return enums.$LocalityTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == localityTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.LocalityTypeEnum.swaggerGeneratedUnknown, '')) .key; } List localityTypeEnumListToJson( List? localityTypeEnum) { if (localityTypeEnum == null) { return []; } return localityTypeEnum .map((e) => e.index) //enums.$LocalityTypeEnumMap[e]! .toList(); } List localityTypeEnumListFromJson( List? localityTypeEnum) { if (localityTypeEnum == null) { return []; } return localityTypeEnum .map((e) => localityTypeEnumFromJson(e)) //.toString() .toList(); } int? moduleEnumToJson(enums.ModuleEnum? moduleEnum) { return moduleEnum?.index; } enums.ModuleEnum moduleEnumFromJson(int? moduleEnum) { if (moduleEnum == null) { return enums.ModuleEnum.swaggerGeneratedUnknown; } return enums.$ModuleEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == moduleEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ModuleEnum.swaggerGeneratedUnknown, '')) .key; } List moduleEnumListToJson(List? moduleEnum) { if (moduleEnum == null) { return []; } return moduleEnum .map((e) => e.index) //enums.$ModuleEnumMap[e]! .toList(); } List moduleEnumListFromJson(List? moduleEnum) { if (moduleEnum == null) { return []; } return moduleEnum .map((e) => moduleEnumFromJson(e)) //.toString() .toList(); } int? objectTypeEnumToJson(enums.ObjectTypeEnum? objectTypeEnum) { return objectTypeEnum?.index; } enums.ObjectTypeEnum objectTypeEnumFromJson(int? objectTypeEnum) { if (objectTypeEnum == null) { return enums.ObjectTypeEnum.swaggerGeneratedUnknown; } return enums.$ObjectTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == objectTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ObjectTypeEnum.swaggerGeneratedUnknown, '')) .key; } List objectTypeEnumListToJson(List? objectTypeEnum) { if (objectTypeEnum == null) { return []; } return objectTypeEnum .map((e) => e.index) //enums.$ObjectTypeEnumMap[e]! .toList(); } List objectTypeEnumListFromJson(List? objectTypeEnum) { if (objectTypeEnum == null) { return []; } return objectTypeEnum .map((e) => objectTypeEnumFromJson(e)) //.toString() .toList(); } int? orderStatusEnumToJson(enums.OrderStatusEnum? orderStatusEnum) { return orderStatusEnum?.index; } enums.OrderStatusEnum orderStatusEnumFromJson(int? orderStatusEnum) { if (orderStatusEnum == null) { return enums.OrderStatusEnum.swaggerGeneratedUnknown; } return enums.$OrderStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == orderStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.OrderStatusEnum.swaggerGeneratedUnknown, '')) .key; } List orderStatusEnumListToJson( List? orderStatusEnum) { if (orderStatusEnum == null) { return []; } return orderStatusEnum .map((e) => e.index) //enums.$OrderStatusEnumMap[e]! .toList(); } List orderStatusEnumListFromJson(List? orderStatusEnum) { if (orderStatusEnum == null) { return []; } return orderStatusEnum .map((e) => orderStatusEnumFromJson(e)) //.toString() .toList(); } int? productReviewStatusEnumToJson( enums.ProductReviewStatusEnum? productReviewStatusEnum) { return productReviewStatusEnum?.index; } enums.ProductReviewStatusEnum productReviewStatusEnumFromJson( int? productReviewStatusEnum) { if (productReviewStatusEnum == null) { return enums.ProductReviewStatusEnum.swaggerGeneratedUnknown; } return enums.$ProductReviewStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == productReviewStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.ProductReviewStatusEnum.swaggerGeneratedUnknown, '')) .key; } List productReviewStatusEnumListToJson( List? productReviewStatusEnum) { if (productReviewStatusEnum == null) { return []; } return productReviewStatusEnum .map((e) => e.index) //enums.$ProductReviewStatusEnumMap[e]! .toList(); } List productReviewStatusEnumListFromJson( List? productReviewStatusEnum) { if (productReviewStatusEnum == null) { return []; } return productReviewStatusEnum .map((e) => productReviewStatusEnumFromJson(e)) //.toString() .toList(); } int? productTypeEnumToJson(enums.ProductTypeEnum? productTypeEnum) { return productTypeEnum?.index; } enums.ProductTypeEnum productTypeEnumFromJson(int? productTypeEnum) { if (productTypeEnum == null) { return enums.ProductTypeEnum.swaggerGeneratedUnknown; } return enums.$ProductTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == productTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.ProductTypeEnum.swaggerGeneratedUnknown, '')) .key; } List productTypeEnumListToJson( List? productTypeEnum) { if (productTypeEnum == null) { return []; } return productTypeEnum .map((e) => e.index) //enums.$ProductTypeEnumMap[e]! .toList(); } List productTypeEnumListFromJson(List? productTypeEnum) { if (productTypeEnum == null) { return []; } return productTypeEnum .map((e) => productTypeEnumFromJson(e)) //.toString() .toList(); } int? questionLevelEnumToJson(enums.QuestionLevelEnum? questionLevelEnum) { return questionLevelEnum?.index; } enums.QuestionLevelEnum questionLevelEnumFromJson(int? questionLevelEnum) { if (questionLevelEnum == null) { return enums.QuestionLevelEnum.swaggerGeneratedUnknown; } return enums.$QuestionLevelEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == questionLevelEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.QuestionLevelEnum.swaggerGeneratedUnknown, '')) .key; } List questionLevelEnumListToJson( List? questionLevelEnum) { if (questionLevelEnum == null) { return []; } return questionLevelEnum .map((e) => e.index) //enums.$QuestionLevelEnumMap[e]! .toList(); } List questionLevelEnumListFromJson( List? questionLevelEnum) { if (questionLevelEnum == null) { return []; } return questionLevelEnum .map((e) => questionLevelEnumFromJson(e)) //.toString() .toList(); } int? questionStatusEnumToJson(enums.QuestionStatusEnum? questionStatusEnum) { return questionStatusEnum?.index; } enums.QuestionStatusEnum questionStatusEnumFromJson(int? questionStatusEnum) { if (questionStatusEnum == null) { return enums.QuestionStatusEnum.swaggerGeneratedUnknown; } return enums.$QuestionStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == questionStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.QuestionStatusEnum.swaggerGeneratedUnknown, '')) .key; } List questionStatusEnumListToJson( List? questionStatusEnum) { if (questionStatusEnum == null) { return []; } return questionStatusEnum .map((e) => e.index) //enums.$QuestionStatusEnumMap[e]! .toList(); } List questionStatusEnumListFromJson( List? questionStatusEnum) { if (questionStatusEnum == null) { return []; } return questionStatusEnum .map((e) => questionStatusEnumFromJson(e)) //.toString() .toList(); } int? schoolStatusEnumToJson(enums.SchoolStatusEnum? schoolStatusEnum) { return schoolStatusEnum?.index; } enums.SchoolStatusEnum schoolStatusEnumFromJson(int? schoolStatusEnum) { if (schoolStatusEnum == null) { return enums.SchoolStatusEnum.swaggerGeneratedUnknown; } return enums.$SchoolStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == schoolStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.SchoolStatusEnum.swaggerGeneratedUnknown, '')) .key; } List schoolStatusEnumListToJson( List? schoolStatusEnum) { if (schoolStatusEnum == null) { return []; } return schoolStatusEnum .map((e) => e.index) //enums.$SchoolStatusEnumMap[e]! .toList(); } List schoolStatusEnumListFromJson( List? schoolStatusEnum) { if (schoolStatusEnum == null) { return []; } return schoolStatusEnum .map((e) => schoolStatusEnumFromJson(e)) //.toString() .toList(); } int? sessionStatusEnumToJson(enums.SessionStatusEnum? sessionStatusEnum) { return sessionStatusEnum?.index; } enums.SessionStatusEnum sessionStatusEnumFromJson(int? sessionStatusEnum) { if (sessionStatusEnum == null) { return enums.SessionStatusEnum.swaggerGeneratedUnknown; } return enums.$SessionStatusEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == sessionStatusEnum.toString().toLowerCase(), orElse: () => const MapEntry( enums.SessionStatusEnum.swaggerGeneratedUnknown, '')) .key; } List sessionStatusEnumListToJson( List? sessionStatusEnum) { if (sessionStatusEnum == null) { return []; } return sessionStatusEnum .map((e) => e.index) //enums.$SessionStatusEnumMap[e]! .toList(); } List sessionStatusEnumListFromJson( List? sessionStatusEnum) { if (sessionStatusEnum == null) { return []; } return sessionStatusEnum .map((e) => sessionStatusEnumFromJson(e)) //.toString() .toList(); } int? userExamResultStatusToJson( enums.UserExamResultStatus? userExamResultStatus) { return userExamResultStatus?.index; } enums.UserExamResultStatus userExamResultStatusFromJson( int? userExamResultStatus) { if (userExamResultStatus == null) { return enums.UserExamResultStatus.swaggerGeneratedUnknown; } return enums.$UserExamResultStatusMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == userExamResultStatus.toString().toLowerCase(), orElse: () => const MapEntry( enums.UserExamResultStatus.swaggerGeneratedUnknown, '')) .key; } List userExamResultStatusListToJson( List? userExamResultStatus) { if (userExamResultStatus == null) { return []; } return userExamResultStatus .map((e) => e.index) //enums.$UserExamResultStatusMap[e]! .toList(); } List userExamResultStatusListFromJson( List? userExamResultStatus) { if (userExamResultStatus == null) { return []; } return userExamResultStatus .map((e) => userExamResultStatusFromJson(e)) //.toString() .toList(); } int? userTypeEnumToJson(enums.UserTypeEnum? userTypeEnum) { return userTypeEnum?.index; } enums.UserTypeEnum userTypeEnumFromJson(int? userTypeEnum) { if (userTypeEnum == null) { return enums.UserTypeEnum.swaggerGeneratedUnknown; } return enums.$UserTypeEnumMap.entries .firstWhere( (element) => element.value.toString().toLowerCase() == userTypeEnum.toString().toLowerCase(), orElse: () => const MapEntry(enums.UserTypeEnum.swaggerGeneratedUnknown, '')) .key; } List userTypeEnumListToJson(List? userTypeEnum) { if (userTypeEnum == null) { return []; } return userTypeEnum .map((e) => e.index) //enums.$UserTypeEnumMap[e]! .toList(); } List userTypeEnumListFromJson(List? userTypeEnum) { if (userTypeEnum == null) { return []; } return userTypeEnum .map((e) => userTypeEnumFromJson(e)) //.toString() .toList(); }