Update service generation
This commit is contained in:
parent
8893c75792
commit
4248da3b0d
@ -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
|
||||
|
||||
@ -8,6 +8,7 @@ import 'package:manager_api_new/api.dart';
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **int** | | [optional]
|
||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||
**icon** | **String** | | [optional]
|
||||
**iconResourceId** | **String** | | [optional]
|
||||
|
||||
@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||
**contents** | [**List<ContentGeoPoint>**](ContentGeoPoint.md) | | [optional] [default to const []]
|
||||
**categorie** | [**GeoPointDTOCategorie**](GeoPointDTOCategorie.md) | | [optional]
|
||||
**categorieId** | **int** | | [optional]
|
||||
**latitude** | **String** | | [optional]
|
||||
**longitude** | **String** | | [optional]
|
||||
**schedules** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||
|
||||
@ -8,6 +8,7 @@ import 'package:manager_api_new/api.dart';
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **int** | | [optional]
|
||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||
**icon** | **String** | | [optional]
|
||||
**iconResourceId** | **String** | | [optional]
|
||||
|
||||
@ -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<TranslationDTO>? 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<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
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<int>(json, r'id'),
|
||||
label: TranslationDTO.listFromJson(json[r'label']),
|
||||
icon: mapValueOfType<String>(json, r'icon'),
|
||||
iconResourceId: mapValueOfType<String>(json, r'iconResourceId'),
|
||||
|
||||
@ -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<ContentGeoPoint>? 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<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@ -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<int>(json, r'categorieId'),
|
||||
latitude: mapValueOfType<String>(json, r'latitude'),
|
||||
longitude: mapValueOfType<String>(json, r'longitude'),
|
||||
schedules: TranslationDTO.listFromJson(json[r'schedules']),
|
||||
|
||||
@ -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<TranslationDTO>? 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<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
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<int>(json, r'id'),
|
||||
label: TranslationDTO.listFromJson(json[r'label']),
|
||||
icon: mapValueOfType<String>(json, r'icon'),
|
||||
iconResourceId: mapValueOfType<String>(json, r'iconResourceId'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user