diff --git a/lib/api/swagger.yaml b/lib/api/swagger.yaml index 7c6aaf9..bb092f9 100644 --- a/lib/api/swagger.yaml +++ b/lib/api/swagger.yaml @@ -2237,6 +2237,10 @@ components: nullable: true oneOf: - $ref: '#/components/schemas/CategorieDTO' + categorieId: + type: integer + format: int32 + nullable: true latitude: type: string nullable: true @@ -2287,6 +2291,10 @@ components: type: object additionalProperties: false properties: + id: + type: integer + format: int32 + nullable: true label: type: array nullable: true diff --git a/manager_api_new/doc/CategorieDTO.md b/manager_api_new/doc/CategorieDTO.md index 121d37f..773a0ae 100644 --- a/manager_api_new/doc/CategorieDTO.md +++ b/manager_api_new/doc/CategorieDTO.md @@ -8,6 +8,7 @@ import 'package:manager_api_new/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] **label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] **icon** | **String** | | [optional] **iconResourceId** | **String** | | [optional] diff --git a/manager_api_new/doc/GeoPointDTO.md b/manager_api_new/doc/GeoPointDTO.md index bdf4ca0..b03a337 100644 --- a/manager_api_new/doc/GeoPointDTO.md +++ b/manager_api_new/doc/GeoPointDTO.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **description** | [**List**](TranslationDTO.md) | | [optional] [default to const []] **contents** | [**List**](ContentGeoPoint.md) | | [optional] [default to const []] **categorie** | [**GeoPointDTOCategorie**](GeoPointDTOCategorie.md) | | [optional] +**categorieId** | **int** | | [optional] **latitude** | **String** | | [optional] **longitude** | **String** | | [optional] **schedules** | [**List**](TranslationDTO.md) | | [optional] [default to const []] diff --git a/manager_api_new/doc/GeoPointDTOCategorie.md b/manager_api_new/doc/GeoPointDTOCategorie.md index 1a7db19..eeefaed 100644 --- a/manager_api_new/doc/GeoPointDTOCategorie.md +++ b/manager_api_new/doc/GeoPointDTOCategorie.md @@ -8,6 +8,7 @@ import 'package:manager_api_new/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**id** | **int** | | [optional] **label** | [**List**](TranslationDTO.md) | | [optional] [default to const []] **icon** | **String** | | [optional] **iconResourceId** | **String** | | [optional] diff --git a/manager_api_new/lib/model/categorie_dto.dart b/manager_api_new/lib/model/categorie_dto.dart index 823a423..33dc8da 100644 --- a/manager_api_new/lib/model/categorie_dto.dart +++ b/manager_api_new/lib/model/categorie_dto.dart @@ -13,6 +13,7 @@ part of openapi.api; class CategorieDTO { /// Returns a new [CategorieDTO] instance. CategorieDTO({ + this.id, this.label = const [], this.icon, this.iconResourceId, @@ -20,6 +21,8 @@ class CategorieDTO { this.order, }); + int? id; + List? label; String? icon; @@ -32,6 +35,7 @@ class CategorieDTO { @override bool operator ==(Object other) => identical(this, other) || other is CategorieDTO && + other.id == id && other.label == label && other.icon == icon && other.iconResourceId == iconResourceId && @@ -41,6 +45,7 @@ class CategorieDTO { @override int get hashCode => // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + (label == null ? 0 : label!.hashCode) + (icon == null ? 0 : icon!.hashCode) + (iconResourceId == null ? 0 : iconResourceId!.hashCode) + @@ -48,10 +53,15 @@ class CategorieDTO { (order == null ? 0 : order!.hashCode); @override - String toString() => 'CategorieDTO[label=$label, icon=$icon, iconResourceId=$iconResourceId, iconUrl=$iconUrl, order=$order]'; + String toString() => 'CategorieDTO[id=$id, label=$label, icon=$icon, iconResourceId=$iconResourceId, iconUrl=$iconUrl, order=$order]'; Map toJson() { final json = {}; + if (this.id != null) { + json[r'id'] = this.id; + } else { + json[r'id'] = null; + } if (this.label != null) { json[r'label'] = this.label; } else { @@ -99,6 +109,7 @@ class CategorieDTO { }()); return CategorieDTO( + id: mapValueOfType(json, r'id'), label: TranslationDTO.listFromJson(json[r'label']), icon: mapValueOfType(json, r'icon'), iconResourceId: mapValueOfType(json, r'iconResourceId'), diff --git a/manager_api_new/lib/model/geo_point_dto.dart b/manager_api_new/lib/model/geo_point_dto.dart index 721c8fc..100c7fb 100644 --- a/manager_api_new/lib/model/geo_point_dto.dart +++ b/manager_api_new/lib/model/geo_point_dto.dart @@ -18,6 +18,7 @@ class GeoPointDTO { this.description = const [], this.contents = const [], this.categorie, + this.categorieId, this.latitude, this.longitude, this.schedules = const [], @@ -36,6 +37,7 @@ class GeoPointDTO { List? contents; CategorieDTO? categorie; + int? categorieId; String? latitude; @@ -58,6 +60,7 @@ class GeoPointDTO { other.description == description && other.contents == contents && other.categorie == categorie && + other.categorieId == categorieId && other.latitude == latitude && other.longitude == longitude && other.schedules == schedules && @@ -74,6 +77,7 @@ class GeoPointDTO { (description == null ? 0 : description!.hashCode) + (contents == null ? 0 : contents!.hashCode) + (categorie == null ? 0 : categorie!.hashCode) + + (categorieId == null ? 0 : categorieId!.hashCode) + (latitude == null ? 0 : latitude!.hashCode) + (longitude == null ? 0 : longitude!.hashCode) + (schedules == null ? 0 : schedules!.hashCode) + @@ -83,7 +87,7 @@ class GeoPointDTO { (site == null ? 0 : site!.hashCode); @override - String toString() => 'GeoPointDTO[id=$id, title=$title, description=$description, contents=$contents, categorie=$categorie, latitude=$latitude, longitude=$longitude, schedules=$schedules, prices=$prices, phone=$phone, email=$email, site=$site]'; + String toString() => 'GeoPointDTO[id=$id, title=$title, description=$description, contents=$contents, categorie=$categorie, categorieId=$categorieId, latitude=$latitude, longitude=$longitude, schedules=$schedules, prices=$prices, phone=$phone, email=$email, site=$site]'; Map toJson() { final json = {}; @@ -112,6 +116,11 @@ class GeoPointDTO { } else { json[r'categorie'] = null; } + if (this.categorieId != null) { + json[r'categorieId'] = this.categorieId; + } else { + json[r'categorieId'] = null; + } if (this.latitude != null) { json[r'latitude'] = this.latitude; } else { @@ -174,6 +183,7 @@ class GeoPointDTO { description: TranslationDTO.listFromJson(json[r'description']), contents: ContentGeoPoint.listFromJson(json[r'contents']), categorie: CategorieDTO.fromJson(json[r'categorie']), + categorieId: mapValueOfType(json, r'categorieId'), latitude: mapValueOfType(json, r'latitude'), longitude: mapValueOfType(json, r'longitude'), schedules: TranslationDTO.listFromJson(json[r'schedules']), diff --git a/manager_api_new/lib/model/geo_point_dto_categorie.dart b/manager_api_new/lib/model/geo_point_dto_categorie.dart index ad87bbb..5c06018 100644 --- a/manager_api_new/lib/model/geo_point_dto_categorie.dart +++ b/manager_api_new/lib/model/geo_point_dto_categorie.dart @@ -13,6 +13,7 @@ part of openapi.api; class GeoPointDTOCategorie { /// Returns a new [GeoPointDTOCategorie] instance. GeoPointDTOCategorie({ + this.id, this.label = const [], this.icon, this.iconResourceId, @@ -20,6 +21,8 @@ class GeoPointDTOCategorie { this.order, }); + int? id; + List? label; String? icon; @@ -32,6 +35,7 @@ class GeoPointDTOCategorie { @override bool operator ==(Object other) => identical(this, other) || other is GeoPointDTOCategorie && + other.id == id && other.label == label && other.icon == icon && other.iconResourceId == iconResourceId && @@ -41,6 +45,7 @@ class GeoPointDTOCategorie { @override int get hashCode => // ignore: unnecessary_parenthesis + (id == null ? 0 : id!.hashCode) + (label == null ? 0 : label!.hashCode) + (icon == null ? 0 : icon!.hashCode) + (iconResourceId == null ? 0 : iconResourceId!.hashCode) + @@ -48,10 +53,15 @@ class GeoPointDTOCategorie { (order == null ? 0 : order!.hashCode); @override - String toString() => 'GeoPointDTOCategorie[label=$label, icon=$icon, iconResourceId=$iconResourceId, iconUrl=$iconUrl, order=$order]'; + String toString() => 'GeoPointDTOCategorie[id=$id, label=$label, icon=$icon, iconResourceId=$iconResourceId, iconUrl=$iconUrl, order=$order]'; Map toJson() { final json = {}; + if (this.id != null) { + json[r'id'] = this.id; + } else { + json[r'id'] = null; + } if (this.label != null) { json[r'label'] = this.label; } else { @@ -99,6 +109,7 @@ class GeoPointDTOCategorie { }()); return GeoPointDTOCategorie( + id: mapValueOfType(json, r'id'), label: TranslationDTO.listFromJson(json[r'label']), icon: mapValueOfType(json, r'icon'), iconResourceId: mapValueOfType(json, r'iconResourceId'),