diff --git a/lib/api/openApiTest.dart b/lib/api/openApiTest.dart deleted file mode 100644 index 4b9e49a..0000000 --- a/lib/api/openApiTest.dart +++ /dev/null @@ -1,27 +0,0 @@ -// Openapi Generator last run: : 2026-05-07T21:23:24.036284 -import 'package:openapi_generator_annotations/openapi_generator_annotations.dart'; - -@Openapi( - additionalProperties: - AdditionalProperties(pubName: 'manager_api_new', pubAuthor: 'Fransolet Thomas', useEnumExtension: true), - inputSpec: InputSpec(path: 'lib/api/swagger.yaml'), - generatorName: Generator.dart, - outputDirectory: 'manager_api_new') -class Example extends OpenapiGeneratorConfig {} - - -/*@Openapi( - additionalProperties: - DioProperties(pubName: 'manager_api_new', pubAuthor: 'Fransolet Thomas'), - inputSpec: - InputSpec(path: 'lib/api/swagger.yaml'), - generatorName: Generator.dart, - runSourceGenOnOutput: true, - outputDirectory: 'manager_api_new', -) -class Example {}*/ - -/* - RUN - >flutter pub run build_runner build --delete-conflicting-outputs -*/ \ No newline at end of file diff --git a/manager_api_new/lib/model/agenda_event_stat_dto.dart b/manager_api_new/lib/model/agenda_event_stat_dto.dart deleted file mode 100644 index 1d92185..0000000 --- a/manager_api_new/lib/model/agenda_event_stat_dto.dart +++ /dev/null @@ -1,152 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AgendaEventStatDTO { - /// Returns a new [AgendaEventStatDTO] instance. - AgendaEventStatDTO({ - this.eventId, - this.eventTitle, - this.taps, - }); - - String? eventId; - - String? eventTitle; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? taps; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AgendaEventStatDTO && - other.eventId == eventId && - other.eventTitle == eventTitle && - other.taps == taps; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (eventId == null ? 0 : eventId!.hashCode) + - (eventTitle == null ? 0 : eventTitle!.hashCode) + - (taps == null ? 0 : taps!.hashCode); - - @override - String toString() => - 'AgendaEventStatDTO[eventId=$eventId, eventTitle=$eventTitle, taps=$taps]'; - - Map toJson() { - final json = {}; - if (this.eventId != null) { - json[r'eventId'] = this.eventId; - } else { - json[r'eventId'] = null; - } - if (this.eventTitle != null) { - json[r'eventTitle'] = this.eventTitle; - } else { - json[r'eventTitle'] = null; - } - if (this.taps != null) { - json[r'taps'] = this.taps; - } else { - json[r'taps'] = null; - } - return json; - } - - /// Returns a new [AgendaEventStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AgendaEventStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "AgendaEventStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "AgendaEventStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AgendaEventStatDTO( - eventId: mapValueOfType(json, r'eventId'), - eventTitle: mapValueOfType(json, r'eventTitle'), - taps: mapValueOfType(json, r'taps'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AgendaEventStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = AgendaEventStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AgendaEventStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = AgendaEventStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/app_configuration_link_dto_application_instance.dart b/manager_api_new/lib/model/app_configuration_link_dto_application_instance.dart deleted file mode 100644 index e73577e..0000000 --- a/manager_api_new/lib/model/app_configuration_link_dto_application_instance.dart +++ /dev/null @@ -1,330 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class AppConfigurationLinkDTOApplicationInstance { - /// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance. - AppConfigurationLinkDTOApplicationInstance({ - this.id, - this.instanceId, - this.appType, - this.configurations = const [], - this.mainImageId, - this.mainImageUrl, - this.loaderImageId, - this.loaderImageUrl, - this.isDate, - this.isHour, - this.primaryColor, - this.secondaryColor, - this.roundedValue, - this.screenPercentageSectionsMainPage, - this.isSectionImageBackground, - this.languages = const [], - }); - - String? id; - - String? instanceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - AppType? appType; - - List? configurations; - - String? mainImageId; - - String? mainImageUrl; - - String? loaderImageId; - - String? loaderImageUrl; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isDate; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isHour; - - String? primaryColor; - - String? secondaryColor; - - int? roundedValue; - - int? screenPercentageSectionsMainPage; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - bool? isSectionImageBackground; - - List? languages; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is AppConfigurationLinkDTOApplicationInstance && - other.id == id && - other.instanceId == instanceId && - other.appType == appType && - _deepEquality.equals(other.configurations, configurations) && - other.mainImageId == mainImageId && - other.mainImageUrl == mainImageUrl && - other.loaderImageId == loaderImageId && - other.loaderImageUrl == loaderImageUrl && - other.isDate == isDate && - other.isHour == isHour && - other.primaryColor == primaryColor && - other.secondaryColor == secondaryColor && - other.roundedValue == roundedValue && - other.screenPercentageSectionsMainPage == - screenPercentageSectionsMainPage && - other.isSectionImageBackground == isSectionImageBackground && - _deepEquality.equals(other.languages, languages); - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode) + - (appType == null ? 0 : appType!.hashCode) + - (configurations == null ? 0 : configurations!.hashCode) + - (mainImageId == null ? 0 : mainImageId!.hashCode) + - (mainImageUrl == null ? 0 : mainImageUrl!.hashCode) + - (loaderImageId == null ? 0 : loaderImageId!.hashCode) + - (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + - (isDate == null ? 0 : isDate!.hashCode) + - (isHour == null ? 0 : isHour!.hashCode) + - (primaryColor == null ? 0 : primaryColor!.hashCode) + - (secondaryColor == null ? 0 : secondaryColor!.hashCode) + - (roundedValue == null ? 0 : roundedValue!.hashCode) + - (screenPercentageSectionsMainPage == null - ? 0 - : screenPercentageSectionsMainPage!.hashCode) + - (isSectionImageBackground == null - ? 0 - : isSectionImageBackground!.hashCode) + - (languages == null ? 0 : languages!.hashCode); - - @override - String toString() => - 'AppConfigurationLinkDTOApplicationInstance[id=$id, instanceId=$instanceId, appType=$appType, configurations=$configurations, mainImageId=$mainImageId, mainImageUrl=$mainImageUrl, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, isDate=$isDate, isHour=$isHour, primaryColor=$primaryColor, secondaryColor=$secondaryColor, roundedValue=$roundedValue, screenPercentageSectionsMainPage=$screenPercentageSectionsMainPage, isSectionImageBackground=$isSectionImageBackground, languages=$languages]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - if (this.appType != null) { - json[r'appType'] = this.appType; - } else { - json[r'appType'] = null; - } - if (this.configurations != null) { - json[r'configurations'] = this.configurations; - } else { - json[r'configurations'] = null; - } - if (this.mainImageId != null) { - json[r'mainImageId'] = this.mainImageId; - } else { - json[r'mainImageId'] = null; - } - if (this.mainImageUrl != null) { - json[r'mainImageUrl'] = this.mainImageUrl; - } else { - json[r'mainImageUrl'] = null; - } - if (this.loaderImageId != null) { - json[r'loaderImageId'] = this.loaderImageId; - } else { - json[r'loaderImageId'] = null; - } - if (this.loaderImageUrl != null) { - json[r'loaderImageUrl'] = this.loaderImageUrl; - } else { - json[r'loaderImageUrl'] = null; - } - if (this.isDate != null) { - json[r'isDate'] = this.isDate; - } else { - json[r'isDate'] = null; - } - if (this.isHour != null) { - json[r'isHour'] = this.isHour; - } else { - json[r'isHour'] = null; - } - if (this.primaryColor != null) { - json[r'primaryColor'] = this.primaryColor; - } else { - json[r'primaryColor'] = null; - } - if (this.secondaryColor != null) { - json[r'secondaryColor'] = this.secondaryColor; - } else { - json[r'secondaryColor'] = null; - } - if (this.roundedValue != null) { - json[r'roundedValue'] = this.roundedValue; - } else { - json[r'roundedValue'] = null; - } - if (this.screenPercentageSectionsMainPage != null) { - json[r'screenPercentageSectionsMainPage'] = - this.screenPercentageSectionsMainPage; - } else { - json[r'screenPercentageSectionsMainPage'] = null; - } - if (this.isSectionImageBackground != null) { - json[r'isSectionImageBackground'] = this.isSectionImageBackground; - } else { - json[r'isSectionImageBackground'] = null; - } - if (this.languages != null) { - json[r'languages'] = this.languages; - } else { - json[r'languages'] = null; - } - return json; - } - - /// Returns a new [AppConfigurationLinkDTOApplicationInstance] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static AppConfigurationLinkDTOApplicationInstance? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "AppConfigurationLinkDTOApplicationInstance[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return AppConfigurationLinkDTOApplicationInstance( - id: mapValueOfType(json, r'id'), - instanceId: mapValueOfType(json, r'instanceId'), - appType: AppType.fromJson(json[r'appType']), - configurations: - AppConfigurationLink.listFromJson(json[r'configurations']), - mainImageId: mapValueOfType(json, r'mainImageId'), - mainImageUrl: mapValueOfType(json, r'mainImageUrl'), - loaderImageId: mapValueOfType(json, r'loaderImageId'), - loaderImageUrl: mapValueOfType(json, r'loaderImageUrl'), - isDate: mapValueOfType(json, r'isDate'), - isHour: mapValueOfType(json, r'isHour'), - primaryColor: mapValueOfType(json, r'primaryColor'), - secondaryColor: mapValueOfType(json, r'secondaryColor'), - roundedValue: mapValueOfType(json, r'roundedValue'), - screenPercentageSectionsMainPage: - mapValueOfType(json, r'screenPercentageSectionsMainPage'), - isSectionImageBackground: - mapValueOfType(json, r'isSectionImageBackground'), - languages: json[r'languages'] is Iterable - ? (json[r'languages'] as Iterable) - .cast() - .toList(growable: false) - : const [], - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = AppConfigurationLinkDTOApplicationInstance.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson( - dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = - AppConfigurationLinkDTOApplicationInstance.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of AppConfigurationLinkDTOApplicationInstance-objects as value to a dart map - static Map> - mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = - AppConfigurationLinkDTOApplicationInstance.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/content_dto_resource.dart b/manager_api_new/lib/model/content_dto_resource.dart deleted file mode 100644 index 521be98..0000000 --- a/manager_api_new/lib/model/content_dto_resource.dart +++ /dev/null @@ -1,191 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ContentDTOResource { - /// Returns a new [ContentDTOResource] instance. - ContentDTOResource({ - this.id, - this.type, - this.label, - this.url, - this.dateCreation, - this.instanceId, - }); - - String? id; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? type; - - String? label; - - String? url; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - String? instanceId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ContentDTOResource && - other.id == id && - other.type == type && - other.label == label && - other.url == url && - other.dateCreation == dateCreation && - other.instanceId == instanceId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id == null ? 0 : id!.hashCode) + - (type == null ? 0 : type!.hashCode) + - (label == null ? 0 : label!.hashCode) + - (url == null ? 0 : url!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode) + - (instanceId == null ? 0 : instanceId!.hashCode); - - @override - String toString() => - 'ContentDTOResource[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]'; - - Map toJson() { - final json = {}; - if (this.id != null) { - json[r'id'] = this.id; - } else { - json[r'id'] = null; - } - if (this.type != null) { - json[r'type'] = this.type; - } else { - json[r'type'] = null; - } - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - if (this.url != null) { - json[r'url'] = this.url; - } else { - json[r'url'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - if (this.instanceId != null) { - json[r'instanceId'] = this.instanceId; - } else { - json[r'instanceId'] = null; - } - return json; - } - - /// Returns a new [ContentDTOResource] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ContentDTOResource? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ContentDTOResource[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ContentDTOResource[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ContentDTOResource( - id: mapValueOfType(json, r'id'), - type: ResourceType.fromJson(json[r'type']), - label: mapValueOfType(json, r'label'), - url: mapValueOfType(json, r'url'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - instanceId: mapValueOfType(json, r'instanceId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ContentDTOResource.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ContentDTOResource.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ContentDTOResource-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ContentDTOResource.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/content_geo_point.dart b/manager_api_new/lib/model/content_geo_point.dart deleted file mode 100644 index 9bd9ce8..0000000 --- a/manager_api_new/lib/model/content_geo_point.dart +++ /dev/null @@ -1,163 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class ContentGeoPoint { - /// Returns a new [ContentGeoPoint] instance. - ContentGeoPoint({ - this.resourceId, - this.resourceType, - this.resourceUrl, - this.resourceName, - }); - - String? resourceId; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - ResourceType? resourceType; - - String? resourceUrl; - - String? resourceName; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is ContentGeoPoint && - other.resourceId == resourceId && - other.resourceType == resourceType && - other.resourceUrl == resourceUrl && - other.resourceName == resourceName; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (resourceId == null ? 0 : resourceId!.hashCode) + - (resourceType == null ? 0 : resourceType!.hashCode) + - (resourceUrl == null ? 0 : resourceUrl!.hashCode) + - (resourceName == null ? 0 : resourceName!.hashCode); - - @override - String toString() => - 'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, resourceName=$resourceName]'; - - Map toJson() { - final json = {}; - if (this.resourceId != null) { - json[r'resourceId'] = this.resourceId; - } else { - json[r'resourceId'] = null; - } - if (this.resourceType != null) { - json[r'resourceType'] = this.resourceType; - } else { - json[r'resourceType'] = null; - } - if (this.resourceUrl != null) { - json[r'resourceUrl'] = this.resourceUrl; - } else { - json[r'resourceUrl'] = null; - } - if (this.resourceName != null) { - json[r'resourceName'] = this.resourceName; - } else { - json[r'resourceName'] = null; - } - return json; - } - - /// Returns a new [ContentGeoPoint] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static ContentGeoPoint? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "ContentGeoPoint[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "ContentGeoPoint[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return ContentGeoPoint( - resourceId: mapValueOfType(json, r'resourceId'), - resourceType: ResourceType.fromJson(json[r'resourceType']), - resourceUrl: mapValueOfType(json, r'resourceUrl'), - resourceName: mapValueOfType(json, r'resourceName'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = ContentGeoPoint.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = ContentGeoPoint.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of ContentGeoPoint-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = ContentGeoPoint.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/day_stat_dto.dart b/manager_api_new/lib/model/day_stat_dto.dart deleted file mode 100644 index 8a28c5a..0000000 --- a/manager_api_new/lib/model/day_stat_dto.dart +++ /dev/null @@ -1,175 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class DayStatDTO { - /// Returns a new [DayStatDTO] instance. - DayStatDTO({ - this.date, - this.total, - this.mobile, - this.tablet, - }); - - String? date; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? total; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? mobile; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? tablet; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is DayStatDTO && - other.date == date && - other.total == total && - other.mobile == mobile && - other.tablet == tablet; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (date == null ? 0 : date!.hashCode) + - (total == null ? 0 : total!.hashCode) + - (mobile == null ? 0 : mobile!.hashCode) + - (tablet == null ? 0 : tablet!.hashCode); - - @override - String toString() => - 'DayStatDTO[date=$date, total=$total, mobile=$mobile, tablet=$tablet]'; - - Map toJson() { - final json = {}; - if (this.date != null) { - json[r'date'] = this.date; - } else { - json[r'date'] = null; - } - if (this.total != null) { - json[r'total'] = this.total; - } else { - json[r'total'] = null; - } - if (this.mobile != null) { - json[r'mobile'] = this.mobile; - } else { - json[r'mobile'] = null; - } - if (this.tablet != null) { - json[r'tablet'] = this.tablet; - } else { - json[r'tablet'] = null; - } - return json; - } - - /// Returns a new [DayStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static DayStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "DayStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "DayStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return DayStatDTO( - date: mapValueOfType(json, r'date'), - total: mapValueOfType(json, r'total'), - mobile: mapValueOfType(json, r'mobile'), - tablet: mapValueOfType(json, r'tablet'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = DayStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = DayStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of DayStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = DayStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/game_stat_dto.dart b/manager_api_new/lib/model/game_stat_dto.dart deleted file mode 100644 index 6f34cf8..0000000 --- a/manager_api_new/lib/model/game_stat_dto.dart +++ /dev/null @@ -1,158 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class GameStatDTO { - /// Returns a new [GameStatDTO] instance. - GameStatDTO({ - this.gameType, - this.completions, - this.avgDurationSeconds, - }); - - String? gameType; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? completions; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? avgDurationSeconds; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is GameStatDTO && - other.gameType == gameType && - other.completions == completions && - other.avgDurationSeconds == avgDurationSeconds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (gameType == null ? 0 : gameType!.hashCode) + - (completions == null ? 0 : completions!.hashCode) + - (avgDurationSeconds == null ? 0 : avgDurationSeconds!.hashCode); - - @override - String toString() => - 'GameStatDTO[gameType=$gameType, completions=$completions, avgDurationSeconds=$avgDurationSeconds]'; - - Map toJson() { - final json = {}; - if (this.gameType != null) { - json[r'gameType'] = this.gameType; - } else { - json[r'gameType'] = null; - } - if (this.completions != null) { - json[r'completions'] = this.completions; - } else { - json[r'completions'] = null; - } - if (this.avgDurationSeconds != null) { - json[r'avgDurationSeconds'] = this.avgDurationSeconds; - } else { - json[r'avgDurationSeconds'] = null; - } - return json; - } - - /// Returns a new [GameStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static GameStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "GameStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "GameStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return GameStatDTO( - gameType: mapValueOfType(json, r'gameType'), - completions: mapValueOfType(json, r'completions'), - avgDurationSeconds: mapValueOfType(json, r'avgDurationSeconds'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = GameStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = GameStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of GameStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = GameStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/level_dto.dart b/manager_api_new/lib/model/level_dto.dart deleted file mode 100644 index 3cdc4bc..0000000 --- a/manager_api_new/lib/model/level_dto.dart +++ /dev/null @@ -1,121 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class LevelDTO { - /// Returns a new [LevelDTO] instance. - LevelDTO({ - this.label = const [], - }); - - List? label; - - @override - bool operator ==(Object other) => - identical(this, other) || other is LevelDTO && other.label == label; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (label == null ? 0 : label!.hashCode); - - @override - String toString() => 'LevelDTO[label=$label]'; - - Map toJson() { - final json = {}; - if (this.label != null) { - json[r'label'] = this.label; - } else { - json[r'label'] = null; - } - return json; - } - - /// Returns a new [LevelDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static LevelDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "LevelDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "LevelDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return LevelDTO( - label: TranslationAndResourceDTO.listFromJson(json[r'label']), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = LevelDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = LevelDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of LevelDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = LevelDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_map_provider.dart b/manager_api_new/lib/model/map_dto_map_provider.dart deleted file mode 100644 index df0842a..0000000 --- a/manager_api_new/lib/model/map_dto_map_provider.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapProvider { - /// Returns a new [MapDTOMapProvider] instance. - MapDTOMapProvider(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapProvider; - - @override - String toString() => 'MapDTOMapProvider[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapProvider] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapProvider? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapProvider[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapProvider[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapProvider(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapProvider.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapProvider.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapProvider-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapProvider.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_map_type.dart b/manager_api_new/lib/model/map_dto_map_type.dart deleted file mode 100644 index 97f1df5..0000000 --- a/manager_api_new/lib/model/map_dto_map_type.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapType { - /// Returns a new [MapDTOMapType] instance. - MapDTOMapType(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapType; - - @override - String toString() => 'MapDTOMapType[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapType] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapType? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapType[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapType[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapType(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapType.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapType.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapType-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapType.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/map_dto_map_type_mapbox.dart b/manager_api_new/lib/model/map_dto_map_type_mapbox.dart deleted file mode 100644 index 32bf26d..0000000 --- a/manager_api_new/lib/model/map_dto_map_type_mapbox.dart +++ /dev/null @@ -1,105 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class MapDTOMapTypeMapbox { - /// Returns a new [MapDTOMapTypeMapbox] instance. - MapDTOMapTypeMapbox(); - - @override - bool operator ==(Object other) => - identical(this, other) || other is MapDTOMapTypeMapbox; - - @override - String toString() => 'MapDTOMapTypeMapbox[]'; - - Map toJson() { - final json = {}; - return json; - } - - /// Returns a new [MapDTOMapTypeMapbox] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static MapDTOMapTypeMapbox? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "MapDTOMapTypeMapbox[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "MapDTOMapTypeMapbox[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return MapDTOMapTypeMapbox(); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = MapDTOMapTypeMapbox.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = MapDTOMapTypeMapbox.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of MapDTOMapTypeMapbox-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = MapDTOMapTypeMapbox.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/poi_stat_dto.dart b/manager_api_new/lib/model/poi_stat_dto.dart deleted file mode 100644 index 0747131..0000000 --- a/manager_api_new/lib/model/poi_stat_dto.dart +++ /dev/null @@ -1,169 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class PoiStatDTO { - /// Returns a new [PoiStatDTO] instance. - PoiStatDTO({ - this.geoPointId, - this.title, - this.taps, - this.sectionId, - }); - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? geoPointId; - - String? title; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? taps; - - String? sectionId; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is PoiStatDTO && - other.geoPointId == geoPointId && - other.title == title && - other.taps == taps && - other.sectionId == sectionId; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (geoPointId == null ? 0 : geoPointId!.hashCode) + - (title == null ? 0 : title!.hashCode) + - (taps == null ? 0 : taps!.hashCode) + - (sectionId == null ? 0 : sectionId!.hashCode); - - @override - String toString() => - 'PoiStatDTO[geoPointId=$geoPointId, title=$title, taps=$taps, sectionId=$sectionId]'; - - Map toJson() { - final json = {}; - if (this.geoPointId != null) { - json[r'geoPointId'] = this.geoPointId; - } else { - json[r'geoPointId'] = null; - } - if (this.title != null) { - json[r'title'] = this.title; - } else { - json[r'title'] = null; - } - if (this.taps != null) { - json[r'taps'] = this.taps; - } else { - json[r'taps'] = null; - } - if (this.sectionId != null) { - json[r'sectionId'] = this.sectionId; - } else { - json[r'sectionId'] = null; - } - return json; - } - - /// Returns a new [PoiStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static PoiStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "PoiStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "PoiStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return PoiStatDTO( - geoPointId: mapValueOfType(json, r'geoPointId'), - title: mapValueOfType(json, r'title'), - taps: mapValueOfType(json, r'taps'), - sectionId: mapValueOfType(json, r'sectionId'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = PoiStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = PoiStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of PoiStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = PoiStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/quiz_stat_dto.dart b/manager_api_new/lib/model/quiz_stat_dto.dart deleted file mode 100644 index c5fbfd9..0000000 --- a/manager_api_new/lib/model/quiz_stat_dto.dart +++ /dev/null @@ -1,186 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class QuizStatDTO { - /// Returns a new [QuizStatDTO] instance. - QuizStatDTO({ - this.sectionId, - this.sectionTitle, - this.avgScore, - this.totalQuestions, - this.completions, - }); - - String? sectionId; - - String? sectionTitle; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - double? avgScore; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? totalQuestions; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? completions; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is QuizStatDTO && - other.sectionId == sectionId && - other.sectionTitle == sectionTitle && - other.avgScore == avgScore && - other.totalQuestions == totalQuestions && - other.completions == completions; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (sectionId == null ? 0 : sectionId!.hashCode) + - (sectionTitle == null ? 0 : sectionTitle!.hashCode) + - (avgScore == null ? 0 : avgScore!.hashCode) + - (totalQuestions == null ? 0 : totalQuestions!.hashCode) + - (completions == null ? 0 : completions!.hashCode); - - @override - String toString() => - 'QuizStatDTO[sectionId=$sectionId, sectionTitle=$sectionTitle, avgScore=$avgScore, totalQuestions=$totalQuestions, completions=$completions]'; - - Map toJson() { - final json = {}; - if (this.sectionId != null) { - json[r'sectionId'] = this.sectionId; - } else { - json[r'sectionId'] = null; - } - if (this.sectionTitle != null) { - json[r'sectionTitle'] = this.sectionTitle; - } else { - json[r'sectionTitle'] = null; - } - if (this.avgScore != null) { - json[r'avgScore'] = this.avgScore; - } else { - json[r'avgScore'] = null; - } - if (this.totalQuestions != null) { - json[r'totalQuestions'] = this.totalQuestions; - } else { - json[r'totalQuestions'] = null; - } - if (this.completions != null) { - json[r'completions'] = this.completions; - } else { - json[r'completions'] = null; - } - return json; - } - - /// Returns a new [QuizStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static QuizStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "QuizStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "QuizStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return QuizStatDTO( - sectionId: mapValueOfType(json, r'sectionId'), - sectionTitle: mapValueOfType(json, r'sectionTitle'), - avgScore: mapValueOfType(json, r'avgScore'), - totalQuestions: mapValueOfType(json, r'totalQuestions'), - completions: mapValueOfType(json, r'completions'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = QuizStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = QuizStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of QuizStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = QuizStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/section_stat_dto.dart b/manager_api_new/lib/model/section_stat_dto.dart deleted file mode 100644 index 76fe33e..0000000 --- a/manager_api_new/lib/model/section_stat_dto.dart +++ /dev/null @@ -1,169 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class SectionStatDTO { - /// Returns a new [SectionStatDTO] instance. - SectionStatDTO({ - this.sectionId, - this.sectionTitle, - this.views, - this.avgDurationSeconds, - }); - - String? sectionId; - - String? sectionTitle; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? views; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - int? avgDurationSeconds; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is SectionStatDTO && - other.sectionId == sectionId && - other.sectionTitle == sectionTitle && - other.views == views && - other.avgDurationSeconds == avgDurationSeconds; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (sectionId == null ? 0 : sectionId!.hashCode) + - (sectionTitle == null ? 0 : sectionTitle!.hashCode) + - (views == null ? 0 : views!.hashCode) + - (avgDurationSeconds == null ? 0 : avgDurationSeconds!.hashCode); - - @override - String toString() => - 'SectionStatDTO[sectionId=$sectionId, sectionTitle=$sectionTitle, views=$views, avgDurationSeconds=$avgDurationSeconds]'; - - Map toJson() { - final json = {}; - if (this.sectionId != null) { - json[r'sectionId'] = this.sectionId; - } else { - json[r'sectionId'] = null; - } - if (this.sectionTitle != null) { - json[r'sectionTitle'] = this.sectionTitle; - } else { - json[r'sectionTitle'] = null; - } - if (this.views != null) { - json[r'views'] = this.views; - } else { - json[r'views'] = null; - } - if (this.avgDurationSeconds != null) { - json[r'avgDurationSeconds'] = this.avgDurationSeconds; - } else { - json[r'avgDurationSeconds'] = null; - } - return json; - } - - /// Returns a new [SectionStatDTO] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static SectionStatDTO? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "SectionStatDTO[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "SectionStatDTO[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return SectionStatDTO( - sectionId: mapValueOfType(json, r'sectionId'), - sectionTitle: mapValueOfType(json, r'sectionTitle'), - views: mapValueOfType(json, r'views'), - avgDurationSeconds: mapValueOfType(json, r'avgDurationSeconds'), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = SectionStatDTO.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = SectionStatDTO.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of SectionStatDTO-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = SectionStatDTO.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = {}; -} diff --git a/manager_api_new/lib/model/user.dart b/manager_api_new/lib/model/user.dart deleted file mode 100644 index 14698a7..0000000 --- a/manager_api_new/lib/model/user.dart +++ /dev/null @@ -1,190 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -part of openapi.api; - -class User { - /// Returns a new [User] instance. - User({ - required this.id, - required this.email, - required this.password, - required this.lastName, - required this.token, - required this.instanceId, - this.firstName, - this.dateCreation, - }); - - String id; - - String email; - - String password; - - String lastName; - - String token; - - String instanceId; - - String? firstName; - - /// - /// Please note: This property should have been non-nullable! Since the specification file - /// does not include a default value (using the "default:" property), however, the generated - /// source code must fall back to having a nullable type. - /// Consider adding a "default:" property in the specification file to hide this note. - /// - DateTime? dateCreation; - - @override - bool operator ==(Object other) => - identical(this, other) || - other is User && - other.id == id && - other.email == email && - other.password == password && - other.lastName == lastName && - other.token == token && - other.instanceId == instanceId && - other.firstName == firstName && - other.dateCreation == dateCreation; - - @override - int get hashCode => - // ignore: unnecessary_parenthesis - (id.hashCode) + - (email.hashCode) + - (password.hashCode) + - (lastName.hashCode) + - (token.hashCode) + - (instanceId.hashCode) + - (firstName == null ? 0 : firstName!.hashCode) + - (dateCreation == null ? 0 : dateCreation!.hashCode); - - @override - String toString() => - 'User[id=$id, email=$email, password=$password, lastName=$lastName, token=$token, instanceId=$instanceId, firstName=$firstName, dateCreation=$dateCreation]'; - - Map toJson() { - final json = {}; - json[r'id'] = this.id; - json[r'email'] = this.email; - json[r'password'] = this.password; - json[r'lastName'] = this.lastName; - json[r'token'] = this.token; - json[r'instanceId'] = this.instanceId; - if (this.firstName != null) { - json[r'firstName'] = this.firstName; - } else { - json[r'firstName'] = null; - } - if (this.dateCreation != null) { - json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String(); - } else { - json[r'dateCreation'] = null; - } - return json; - } - - /// Returns a new [User] instance and imports its values from - /// [value] if it's a [Map], null otherwise. - // ignore: prefer_constructors_over_static_methods - static User? fromJson(dynamic value) { - if (value is Map) { - final json = value.cast(); - - // Ensure that the map contains the required keys. - // Note 1: the values aren't checked for validity beyond being non-null. - // Note 2: this code is stripped in release mode! - assert(() { - requiredKeys.forEach((key) { - assert(json.containsKey(key), - 'Required key "User[$key]" is missing from JSON.'); - assert(json[key] != null, - 'Required key "User[$key]" has a null value in JSON.'); - }); - return true; - }()); - - return User( - id: mapValueOfType(json, r'id')!, - email: mapValueOfType(json, r'email')!, - password: mapValueOfType(json, r'password')!, - lastName: mapValueOfType(json, r'lastName')!, - token: mapValueOfType(json, r'token')!, - instanceId: mapValueOfType(json, r'instanceId')!, - firstName: mapValueOfType(json, r'firstName'), - dateCreation: mapDateTime(json, r'dateCreation', r''), - ); - } - return null; - } - - static List listFromJson( - dynamic json, { - bool growable = false, - }) { - final result = []; - if (json is List && json.isNotEmpty) { - for (final row in json) { - final value = User.fromJson(row); - if (value != null) { - result.add(value); - } - } - } - return result.toList(growable: growable); - } - - static Map mapFromJson(dynamic json) { - final map = {}; - if (json is Map && json.isNotEmpty) { - json = json.cast(); // ignore: parameter_assignments - for (final entry in json.entries) { - final value = User.fromJson(entry.value); - if (value != null) { - map[entry.key] = value; - } - } - } - return map; - } - - // maps a json object with a list of User-objects as value to a dart map - static Map> mapListFromJson( - dynamic json, { - bool growable = false, - }) { - final map = >{}; - if (json is Map && json.isNotEmpty) { - // ignore: parameter_assignments - json = json.cast(); - for (final entry in json.entries) { - map[entry.key] = User.listFromJson( - entry.value, - growable: growable, - ); - } - } - return map; - } - - /// The list of required keys that must be present in a JSON. - static const requiredKeys = { - 'id', - 'email', - 'password', - 'lastName', - 'token', - 'instanceId', - }; -} diff --git a/manager_api_new/test/agenda_event_stat_dto_test.dart b/manager_api_new/test/agenda_event_stat_dto_test.dart deleted file mode 100644 index 10bdafc..0000000 --- a/manager_api_new/test/agenda_event_stat_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for AgendaEventStatDTO -void main() { - // final instance = AgendaEventStatDTO(); - - group('test AgendaEventStatDTO', () { - // String eventId - test('to test the property `eventId`', () async { - // TODO - }); - - // String eventTitle - test('to test the property `eventTitle`', () async { - // TODO - }); - - // int taps - test('to test the property `taps`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/app_configuration_link_dto_application_instance_test.dart b/manager_api_new/test/app_configuration_link_dto_application_instance_test.dart deleted file mode 100644 index e480f00..0000000 --- a/manager_api_new/test/app_configuration_link_dto_application_instance_test.dart +++ /dev/null @@ -1,99 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for AppConfigurationLinkDTOApplicationInstance -void main() { - // final instance = AppConfigurationLinkDTOApplicationInstance(); - - group('test AppConfigurationLinkDTOApplicationInstance', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - - // AppType appType - test('to test the property `appType`', () async { - // TODO - }); - - // List configurations (default value: const []) - test('to test the property `configurations`', () async { - // TODO - }); - - // String mainImageId - test('to test the property `mainImageId`', () async { - // TODO - }); - - // String mainImageUrl - test('to test the property `mainImageUrl`', () async { - // TODO - }); - - // String loaderImageId - test('to test the property `loaderImageId`', () async { - // TODO - }); - - // String loaderImageUrl - test('to test the property `loaderImageUrl`', () async { - // TODO - }); - - // bool isDate - test('to test the property `isDate`', () async { - // TODO - }); - - // bool isHour - test('to test the property `isHour`', () async { - // TODO - }); - - // String primaryColor - test('to test the property `primaryColor`', () async { - // TODO - }); - - // String secondaryColor - test('to test the property `secondaryColor`', () async { - // TODO - }); - - // int roundedValue - test('to test the property `roundedValue`', () async { - // TODO - }); - - // int screenPercentageSectionsMainPage - test('to test the property `screenPercentageSectionsMainPage`', () async { - // TODO - }); - - // bool isSectionImageBackground - test('to test the property `isSectionImageBackground`', () async { - // TODO - }); - - // List languages (default value: const []) - test('to test the property `languages`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/content_dto_resource_test.dart b/manager_api_new/test/content_dto_resource_test.dart deleted file mode 100644 index 1a1000c..0000000 --- a/manager_api_new/test/content_dto_resource_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ContentDTOResource -void main() { - // final instance = ContentDTOResource(); - - group('test ContentDTOResource', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // ResourceType type - test('to test the property `type`', () async { - // TODO - }); - - // String label - test('to test the property `label`', () async { - // TODO - }); - - // String url - test('to test the property `url`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/content_geo_point_test.dart b/manager_api_new/test/content_geo_point_test.dart deleted file mode 100644 index 976901c..0000000 --- a/manager_api_new/test/content_geo_point_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for ContentGeoPoint -void main() { - // final instance = ContentGeoPoint(); - - group('test ContentGeoPoint', () { - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // ResourceType resourceType - test('to test the property `resourceType`', () async { - // TODO - }); - - // String resourceUrl - test('to test the property `resourceUrl`', () async { - // TODO - }); - - // String latitude - test('to test the property `latitude`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/day_stat_dto_test.dart b/manager_api_new/test/day_stat_dto_test.dart deleted file mode 100644 index 079b403..0000000 --- a/manager_api_new/test/day_stat_dto_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for DayStatDTO -void main() { - // final instance = DayStatDTO(); - - group('test DayStatDTO', () { - // String date - test('to test the property `date`', () async { - // TODO - }); - - // int total - test('to test the property `total`', () async { - // TODO - }); - - // int mobile - test('to test the property `mobile`', () async { - // TODO - }); - - // int tablet - test('to test the property `tablet`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/game_stat_dto_test.dart b/manager_api_new/test/game_stat_dto_test.dart deleted file mode 100644 index 2231b19..0000000 --- a/manager_api_new/test/game_stat_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for GameStatDTO -void main() { - // final instance = GameStatDTO(); - - group('test GameStatDTO', () { - // String gameType - test('to test the property `gameType`', () async { - // TODO - }); - - // int completions - test('to test the property `completions`', () async { - // TODO - }); - - // int avgDurationSeconds - test('to test the property `avgDurationSeconds`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/level_dto_test.dart b/manager_api_new/test/level_dto_test.dart deleted file mode 100644 index bca1bd3..0000000 --- a/manager_api_new/test/level_dto_test.dart +++ /dev/null @@ -1,34 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for LevelDTO -void main() { - // final instance = LevelDTO(); - - group('test LevelDTO', () { - // List label (default value: const []) - test('to test the property `label`', () async { - // TODO - }); - - // String resourceId - test('to test the property `resourceId`', () async { - // TODO - }); - - // String source_ - test('to test the property `source_`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/map_dto_map_provider_test.dart b/manager_api_new/test/map_dto_map_provider_test.dart deleted file mode 100644 index fa2f46d..0000000 --- a/manager_api_new/test/map_dto_map_provider_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapProvider -void main() { - // final instance = MapDTOMapProvider(); - - group('test MapDTOMapProvider', () {}); -} diff --git a/manager_api_new/test/map_dto_map_type_mapbox_test.dart b/manager_api_new/test/map_dto_map_type_mapbox_test.dart deleted file mode 100644 index 8d50d5d..0000000 --- a/manager_api_new/test/map_dto_map_type_mapbox_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapTypeMapbox -void main() { - // final instance = MapDTOMapTypeMapbox(); - - group('test MapDTOMapTypeMapbox', () {}); -} diff --git a/manager_api_new/test/map_dto_map_type_test.dart b/manager_api_new/test/map_dto_map_type_test.dart deleted file mode 100644 index f6b4cc3..0000000 --- a/manager_api_new/test/map_dto_map_type_test.dart +++ /dev/null @@ -1,19 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for MapDTOMapType -void main() { - // final instance = MapDTOMapType(); - - group('test MapDTOMapType', () {}); -} diff --git a/manager_api_new/test/poi_stat_dto_test.dart b/manager_api_new/test/poi_stat_dto_test.dart deleted file mode 100644 index 06aa4c9..0000000 --- a/manager_api_new/test/poi_stat_dto_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for PoiStatDTO -void main() { - // final instance = PoiStatDTO(); - - group('test PoiStatDTO', () { - // int geoPointId - test('to test the property `geoPointId`', () async { - // TODO - }); - - // String title - test('to test the property `title`', () async { - // TODO - }); - - // int taps - test('to test the property `taps`', () async { - // TODO - }); - - // String sectionId - test('to test the property `sectionId`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/quiz_stat_dto_test.dart b/manager_api_new/test/quiz_stat_dto_test.dart deleted file mode 100644 index e8a200e..0000000 --- a/manager_api_new/test/quiz_stat_dto_test.dart +++ /dev/null @@ -1,44 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for QuizStatDTO -void main() { - // final instance = QuizStatDTO(); - - group('test QuizStatDTO', () { - // String sectionId - test('to test the property `sectionId`', () async { - // TODO - }); - - // String sectionTitle - test('to test the property `sectionTitle`', () async { - // TODO - }); - - // double avgScore - test('to test the property `avgScore`', () async { - // TODO - }); - - // int totalQuestions - test('to test the property `totalQuestions`', () async { - // TODO - }); - - // int completions - test('to test the property `completions`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/section_stat_dto_test.dart b/manager_api_new/test/section_stat_dto_test.dart deleted file mode 100644 index 010dd31..0000000 --- a/manager_api_new/test/section_stat_dto_test.dart +++ /dev/null @@ -1,39 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.18 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for SectionStatDTO -void main() { - // final instance = SectionStatDTO(); - - group('test SectionStatDTO', () { - // String sectionId - test('to test the property `sectionId`', () async { - // TODO - }); - - // String sectionTitle - test('to test the property `sectionTitle`', () async { - // TODO - }); - - // int views - test('to test the property `views`', () async { - // TODO - }); - - // int avgDurationSeconds - test('to test the property `avgDurationSeconds`', () async { - // TODO - }); - }); -} diff --git a/manager_api_new/test/user_test.dart b/manager_api_new/test/user_test.dart deleted file mode 100644 index ce9fb95..0000000 --- a/manager_api_new/test/user_test.dart +++ /dev/null @@ -1,59 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// -// @dart=2.12 - -// ignore_for_file: unused_element, unused_import -// ignore_for_file: always_put_required_named_parameters_first -// ignore_for_file: constant_identifier_names -// ignore_for_file: lines_longer_than_80_chars - -import 'package:manager_api_new/api.dart'; -import 'package:test/test.dart'; - -// tests for User -void main() { - // final instance = User(); - - group('test User', () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - // String email - test('to test the property `email`', () async { - // TODO - }); - - // String password - test('to test the property `password`', () async { - // TODO - }); - - // String firstName - test('to test the property `firstName`', () async { - // TODO - }); - - // String lastName - test('to test the property `lastName`', () async { - // TODO - }); - - // String token - test('to test the property `token`', () async { - // TODO - }); - - // DateTime dateCreation - test('to test the property `dateCreation`', () async { - // TODO - }); - - // String instanceId - test('to test the property `instanceId`', () async { - // TODO - }); - }); -}