mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 16:41:19 +00:00
update service generation
This commit is contained in:
parent
19437196df
commit
2a93ec497b
@ -5,7 +5,7 @@ info:
|
|||||||
description: API Manager Service
|
description: API Manager Service
|
||||||
version: Version Alpha
|
version: Version Alpha
|
||||||
servers:
|
servers:
|
||||||
- url: https://api.mymuseum.be
|
- url: http://localhost:5000
|
||||||
paths:
|
paths:
|
||||||
/api/Configuration:
|
/api/Configuration:
|
||||||
get:
|
get:
|
||||||
@ -1805,9 +1805,15 @@ components:
|
|||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
pinCode:
|
loaderImageId:
|
||||||
type: integer
|
type: string
|
||||||
format: int32
|
nullable: true
|
||||||
|
loaderImageUrl:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
weatherCity:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
TranslationDTO:
|
TranslationDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
@ -1945,7 +1951,7 @@ components:
|
|||||||
label:
|
label:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
data:
|
url:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
dateCreation:
|
dateCreation:
|
||||||
@ -2088,6 +2094,11 @@ components:
|
|||||||
iconSource:
|
iconSource:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
|
categories:
|
||||||
|
type: array
|
||||||
|
nullable: true
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/CategorieDTO'
|
||||||
MapTypeApp:
|
MapTypeApp:
|
||||||
type: integer
|
type: integer
|
||||||
description: |-
|
description: |-
|
||||||
@ -2125,37 +2136,56 @@ components:
|
|||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/TranslationDTO'
|
$ref: '#/components/schemas/TranslationDTO'
|
||||||
images:
|
contents:
|
||||||
type: array
|
type: array
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ImageGeoPoint'
|
$ref: '#/components/schemas/ContentGeoPoint'
|
||||||
|
categorie:
|
||||||
|
nullable: true
|
||||||
|
oneOf:
|
||||||
|
- $ref: '#/components/schemas/CategorieDTO'
|
||||||
latitude:
|
latitude:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
longitude:
|
longitude:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
ImageGeoPoint:
|
ContentGeoPoint:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
imageResourceId:
|
resourceId:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
imageSource:
|
resourceType:
|
||||||
|
$ref: '#/components/schemas/ResourceType'
|
||||||
|
resourceUrl:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
latitude:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
CategorieDTO:
|
||||||
|
type: object
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
icon:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
SliderDTO:
|
SliderDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
images:
|
contents:
|
||||||
type: array
|
type: array
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ImageDTO'
|
$ref: '#/components/schemas/ContentDTO'
|
||||||
ImageDTO:
|
ContentDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
@ -2172,12 +2202,14 @@ components:
|
|||||||
resourceId:
|
resourceId:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
source:
|
resourceUrl:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
order:
|
order:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
|
resourceType:
|
||||||
|
$ref: '#/components/schemas/ResourceType'
|
||||||
VideoDTO:
|
VideoDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
@ -2251,7 +2283,9 @@ components:
|
|||||||
resourceId:
|
resourceId:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
source:
|
resourceType:
|
||||||
|
$ref: '#/components/schemas/ResourceType'
|
||||||
|
resourceUrl:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
order:
|
order:
|
||||||
@ -2283,7 +2317,9 @@ components:
|
|||||||
resourceId:
|
resourceId:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
source:
|
resourceType:
|
||||||
|
$ref: '#/components/schemas/ResourceType'
|
||||||
|
resourceUrl:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
ArticleDTO:
|
ArticleDTO:
|
||||||
@ -2304,16 +2340,19 @@ components:
|
|||||||
$ref: '#/components/schemas/TranslationDTO'
|
$ref: '#/components/schemas/TranslationDTO'
|
||||||
isReadAudioAuto:
|
isReadAudioAuto:
|
||||||
type: boolean
|
type: boolean
|
||||||
images:
|
contents:
|
||||||
type: array
|
type: array
|
||||||
nullable: true
|
nullable: true
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ImageDTO'
|
$ref: '#/components/schemas/ContentDTO'
|
||||||
PdfDTO:
|
PdfDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
source:
|
resourceId:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
resourceUrl:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
PuzzleDTO:
|
PuzzleDTO:
|
||||||
@ -2333,12 +2372,15 @@ components:
|
|||||||
image:
|
image:
|
||||||
nullable: true
|
nullable: true
|
||||||
oneOf:
|
oneOf:
|
||||||
- $ref: '#/components/schemas/ImageDTO'
|
- $ref: '#/components/schemas/ContentDTO'
|
||||||
AgendaDTO:
|
AgendaDTO:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
source:
|
resourceId:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
resourceUrl:
|
||||||
type: string
|
type: string
|
||||||
nullable: true
|
nullable: true
|
||||||
User:
|
User:
|
||||||
|
|||||||
@ -5,8 +5,11 @@ analysis_options.yaml
|
|||||||
doc/AgendaDTO.md
|
doc/AgendaDTO.md
|
||||||
doc/ArticleDTO.md
|
doc/ArticleDTO.md
|
||||||
doc/AuthenticationApi.md
|
doc/AuthenticationApi.md
|
||||||
|
doc/CategorieDTO.md
|
||||||
doc/ConfigurationApi.md
|
doc/ConfigurationApi.md
|
||||||
doc/ConfigurationDTO.md
|
doc/ConfigurationDTO.md
|
||||||
|
doc/ContentDTO.md
|
||||||
|
doc/ContentGeoPoint.md
|
||||||
doc/DeviceApi.md
|
doc/DeviceApi.md
|
||||||
doc/DeviceDTO.md
|
doc/DeviceDTO.md
|
||||||
doc/DeviceDetailDTO.md
|
doc/DeviceDetailDTO.md
|
||||||
@ -14,8 +17,7 @@ doc/DeviceDetailDTOAllOf.md
|
|||||||
doc/ExportConfigurationDTO.md
|
doc/ExportConfigurationDTO.md
|
||||||
doc/ExportConfigurationDTOAllOf.md
|
doc/ExportConfigurationDTOAllOf.md
|
||||||
doc/GeoPointDTO.md
|
doc/GeoPointDTO.md
|
||||||
doc/ImageDTO.md
|
doc/GeoPointDTOCategorie.md
|
||||||
doc/ImageGeoPoint.md
|
|
||||||
doc/Instance.md
|
doc/Instance.md
|
||||||
doc/InstanceApi.md
|
doc/InstanceApi.md
|
||||||
doc/InstanceDTO.md
|
doc/InstanceDTO.md
|
||||||
@ -65,15 +67,17 @@ lib/auth/http_bearer_auth.dart
|
|||||||
lib/auth/oauth.dart
|
lib/auth/oauth.dart
|
||||||
lib/model/agenda_dto.dart
|
lib/model/agenda_dto.dart
|
||||||
lib/model/article_dto.dart
|
lib/model/article_dto.dart
|
||||||
|
lib/model/categorie_dto.dart
|
||||||
lib/model/configuration_dto.dart
|
lib/model/configuration_dto.dart
|
||||||
|
lib/model/content_dto.dart
|
||||||
|
lib/model/content_geo_point.dart
|
||||||
lib/model/device_detail_dto.dart
|
lib/model/device_detail_dto.dart
|
||||||
lib/model/device_detail_dto_all_of.dart
|
lib/model/device_detail_dto_all_of.dart
|
||||||
lib/model/device_dto.dart
|
lib/model/device_dto.dart
|
||||||
lib/model/export_configuration_dto.dart
|
lib/model/export_configuration_dto.dart
|
||||||
lib/model/export_configuration_dto_all_of.dart
|
lib/model/export_configuration_dto_all_of.dart
|
||||||
lib/model/geo_point_dto.dart
|
lib/model/geo_point_dto.dart
|
||||||
lib/model/image_dto.dart
|
lib/model/geo_point_dto_categorie.dart
|
||||||
lib/model/image_geo_point.dart
|
|
||||||
lib/model/instance.dart
|
lib/model/instance.dart
|
||||||
lib/model/instance_dto.dart
|
lib/model/instance_dto.dart
|
||||||
lib/model/level_dto.dart
|
lib/model/level_dto.dart
|
||||||
@ -101,7 +105,7 @@ lib/model/user_detail_dto.dart
|
|||||||
lib/model/video_dto.dart
|
lib/model/video_dto.dart
|
||||||
lib/model/web_dto.dart
|
lib/model/web_dto.dart
|
||||||
pubspec.yaml
|
pubspec.yaml
|
||||||
test/agenda_dto_test.dart
|
test/categorie_dto_test.dart
|
||||||
test/pdf_dto_test.dart
|
test/content_dto_test.dart
|
||||||
test/puzzle_dto_image_test.dart
|
test/content_geo_point_test.dart
|
||||||
test/puzzle_dto_test.dart
|
test/geo_point_dto_categorie_test.dart
|
||||||
|
|||||||
@ -60,7 +60,7 @@ try {
|
|||||||
|
|
||||||
## Documentation for API Endpoints
|
## Documentation for API Endpoints
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
@ -125,15 +125,17 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
- [AgendaDTO](doc\/AgendaDTO.md)
|
- [AgendaDTO](doc\/AgendaDTO.md)
|
||||||
- [ArticleDTO](doc\/ArticleDTO.md)
|
- [ArticleDTO](doc\/ArticleDTO.md)
|
||||||
|
- [CategorieDTO](doc\/CategorieDTO.md)
|
||||||
- [ConfigurationDTO](doc\/ConfigurationDTO.md)
|
- [ConfigurationDTO](doc\/ConfigurationDTO.md)
|
||||||
|
- [ContentDTO](doc\/ContentDTO.md)
|
||||||
|
- [ContentGeoPoint](doc\/ContentGeoPoint.md)
|
||||||
- [DeviceDTO](doc\/DeviceDTO.md)
|
- [DeviceDTO](doc\/DeviceDTO.md)
|
||||||
- [DeviceDetailDTO](doc\/DeviceDetailDTO.md)
|
- [DeviceDetailDTO](doc\/DeviceDetailDTO.md)
|
||||||
- [DeviceDetailDTOAllOf](doc\/DeviceDetailDTOAllOf.md)
|
- [DeviceDetailDTOAllOf](doc\/DeviceDetailDTOAllOf.md)
|
||||||
- [ExportConfigurationDTO](doc\/ExportConfigurationDTO.md)
|
- [ExportConfigurationDTO](doc\/ExportConfigurationDTO.md)
|
||||||
- [ExportConfigurationDTOAllOf](doc\/ExportConfigurationDTOAllOf.md)
|
- [ExportConfigurationDTOAllOf](doc\/ExportConfigurationDTOAllOf.md)
|
||||||
- [GeoPointDTO](doc\/GeoPointDTO.md)
|
- [GeoPointDTO](doc\/GeoPointDTO.md)
|
||||||
- [ImageDTO](doc\/ImageDTO.md)
|
- [GeoPointDTOCategorie](doc\/GeoPointDTOCategorie.md)
|
||||||
- [ImageGeoPoint](doc\/ImageGeoPoint.md)
|
|
||||||
- [Instance](doc\/Instance.md)
|
- [Instance](doc\/Instance.md)
|
||||||
- [InstanceDTO](doc\/InstanceDTO.md)
|
- [InstanceDTO](doc\/InstanceDTO.md)
|
||||||
- [LevelDTO](doc\/LevelDTO.md)
|
- [LevelDTO](doc\/LevelDTO.md)
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import 'package:manager_api/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**source_** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|||||||
**isContentTop** | **bool** | | [optional]
|
**isContentTop** | **bool** | | [optional]
|
||||||
**audioIds** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**audioIds** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**isReadAudioAuto** | **bool** | | [optional]
|
**isReadAudioAuto** | **bool** | | [optional]
|
||||||
**images** | [**List<ImageDTO>**](ImageDTO.md) | | [optional] [default to const []]
|
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
16
manager_api/doc/CategorieDTO.md
Normal file
16
manager_api/doc/CategorieDTO.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# manager_api.model.CategorieDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**name** | **String** | | [optional]
|
||||||
|
**icon** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -23,6 +23,9 @@ Name | Type | Description | Notes
|
|||||||
**instanceId** | **String** | | [optional]
|
**instanceId** | **String** | | [optional]
|
||||||
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**pinCode** | **int** | | [optional]
|
**pinCode** | **int** | | [optional]
|
||||||
|
**loaderImageId** | **String** | | [optional]
|
||||||
|
**loaderImageUrl** | **String** | | [optional]
|
||||||
|
**weatherCity** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
20
manager_api/doc/ContentDTO.md
Normal file
20
manager_api/doc/ContentDTO.md
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# manager_api.model.ContentDTO
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
|
**resourceId** | **String** | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
**order** | **int** | | [optional]
|
||||||
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
18
manager_api/doc/ContentGeoPoint.md
Normal file
18
manager_api/doc/ContentGeoPoint.md
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# manager_api.model.ContentGeoPoint
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**resourceId** | **String** | | [optional]
|
||||||
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
**latitude** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -23,6 +23,9 @@ Name | Type | Description | Notes
|
|||||||
**instanceId** | **String** | | [optional]
|
**instanceId** | **String** | | [optional]
|
||||||
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
**sectionIds** | **List<String>** | | [optional] [default to const []]
|
||||||
**pinCode** | **int** | | [optional]
|
**pinCode** | **int** | | [optional]
|
||||||
|
**loaderImageId** | **String** | | [optional]
|
||||||
|
**loaderImageUrl** | **String** | | [optional]
|
||||||
|
**weatherCity** | **String** | | [optional]
|
||||||
**sections** | [**List<SectionDTO>**](SectionDTO.md) | | [optional] [default to const []]
|
**sections** | [**List<SectionDTO>**](SectionDTO.md) | | [optional] [default to const []]
|
||||||
**resources** | [**List<ResourceDTO>**](ResourceDTO.md) | | [optional] [default to const []]
|
**resources** | [**List<ResourceDTO>**](ResourceDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,8 @@ Name | Type | Description | Notes
|
|||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**images** | [**List<ImageGeoPoint>**](ImageGeoPoint.md) | | [optional] [default to const []]
|
**contents** | [**List<ContentGeoPoint>**](ContentGeoPoint.md) | | [optional] [default to const []]
|
||||||
|
**categorie** | [**GeoPointDTOCategorie**](GeoPointDTOCategorie.md) | | [optional]
|
||||||
**latitude** | **String** | | [optional]
|
**latitude** | **String** | | [optional]
|
||||||
**longitude** | **String** | | [optional]
|
**longitude** | **String** | | [optional]
|
||||||
|
|
||||||
|
|||||||
16
manager_api/doc/GeoPointDTOCategorie.md
Normal file
16
manager_api/doc/GeoPointDTOCategorie.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# manager_api.model.GeoPointDTOCategorie
|
||||||
|
|
||||||
|
## Load the model package
|
||||||
|
```dart
|
||||||
|
import 'package:manager_api/api.dart';
|
||||||
|
```
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
**name** | **String** | | [optional]
|
||||||
|
**icon** | **String** | | [optional]
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -10,7 +10,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**resourceId** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
**source_** | **String** | | [optional]
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|||||||
**points** | [**List<GeoPointDTO>**](GeoPointDTO.md) | | [optional] [default to const []]
|
**points** | [**List<GeoPointDTO>**](GeoPointDTO.md) | | [optional] [default to const []]
|
||||||
**iconResourceId** | **String** | | [optional]
|
**iconResourceId** | **String** | | [optional]
|
||||||
**iconSource** | **String** | | [optional]
|
**iconSource** | **String** | | [optional]
|
||||||
|
**categories** | [**List<CategorieDTO>**](CategorieDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -8,7 +8,8 @@ import 'package:manager_api/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**source_** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -11,8 +11,9 @@ Name | Type | Description | Notes
|
|||||||
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**title** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**description** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**resourceId** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
**source_** | **String** | | [optional]
|
**resourceUrl** | **String** | | [optional]
|
||||||
**order** | **int** | | [optional]
|
**order** | **int** | | [optional]
|
||||||
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,8 @@ Name | Type | Description | Notes
|
|||||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**responses** | [**List<ResponseDTO>**](ResponseDTO.md) | | [optional] [default to const []]
|
**responses** | [**List<ResponseDTO>**](ResponseDTO.md) | | [optional] [default to const []]
|
||||||
**resourceId** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
**source_** | **String** | | [optional]
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
**order** | **int** | | [optional]
|
**order** | **int** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|||||||
@ -10,7 +10,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
**label** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
|
||||||
**resourceId** | **String** | | [optional]
|
**resourceId** | **String** | | [optional]
|
||||||
**source_** | **String** | | [optional]
|
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
|
**resourceUrl** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **String** | | [optional]
|
**id** | **String** | | [optional]
|
||||||
**type** | [**ResourceType**](ResourceType.md) | | [optional]
|
**type** | [**ResourceType**](ResourceType.md) | | [optional]
|
||||||
**label** | **String** | | [optional]
|
**label** | **String** | | [optional]
|
||||||
**data** | **String** | | [optional]
|
**url** | **String** | | [optional]
|
||||||
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
**dateCreation** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**instanceId** | **String** | | [optional]
|
**instanceId** | **String** | | [optional]
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -8,7 +8,7 @@ import 'package:manager_api/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**images** | [**List<ImageDTO>**](ImageDTO.md) | | [optional] [default to const []]
|
**contents** | [**List<ContentDTO>**](ContentDTO.md) | | [optional] [default to const []]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
import 'package:manager_api/api.dart';
|
import 'package:manager_api/api.dart';
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *https://api.mymuseum.be*
|
All URIs are relative to *http://localhost:5000*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
|
|||||||
@ -37,15 +37,17 @@ part 'api/user_api.dart';
|
|||||||
|
|
||||||
part 'model/agenda_dto.dart';
|
part 'model/agenda_dto.dart';
|
||||||
part 'model/article_dto.dart';
|
part 'model/article_dto.dart';
|
||||||
|
part 'model/categorie_dto.dart';
|
||||||
part 'model/configuration_dto.dart';
|
part 'model/configuration_dto.dart';
|
||||||
|
part 'model/content_dto.dart';
|
||||||
|
part 'model/content_geo_point.dart';
|
||||||
part 'model/device_dto.dart';
|
part 'model/device_dto.dart';
|
||||||
part 'model/device_detail_dto.dart';
|
part 'model/device_detail_dto.dart';
|
||||||
part 'model/device_detail_dto_all_of.dart';
|
part 'model/device_detail_dto_all_of.dart';
|
||||||
part 'model/export_configuration_dto.dart';
|
part 'model/export_configuration_dto.dart';
|
||||||
part 'model/export_configuration_dto_all_of.dart';
|
part 'model/export_configuration_dto_all_of.dart';
|
||||||
part 'model/geo_point_dto.dart';
|
part 'model/geo_point_dto.dart';
|
||||||
part 'model/image_dto.dart';
|
part 'model/geo_point_dto_categorie.dart';
|
||||||
part 'model/image_geo_point.dart';
|
|
||||||
part 'model/instance.dart';
|
part 'model/instance.dart';
|
||||||
part 'model/instance_dto.dart';
|
part 'model/instance_dto.dart';
|
||||||
part 'model/level_dto.dart';
|
part 'model/level_dto.dart';
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
part of openapi.api;
|
part of openapi.api;
|
||||||
|
|
||||||
class ApiClient {
|
class ApiClient {
|
||||||
ApiClient({this.basePath = 'https://api.mymuseum.be', this.authentication,});
|
ApiClient({this.basePath = 'http://localhost:5000', this.authentication,});
|
||||||
|
|
||||||
final String basePath;
|
final String basePath;
|
||||||
final Authentication? authentication;
|
final Authentication? authentication;
|
||||||
@ -185,8 +185,14 @@ class ApiClient {
|
|||||||
return AgendaDTO.fromJson(value);
|
return AgendaDTO.fromJson(value);
|
||||||
case 'ArticleDTO':
|
case 'ArticleDTO':
|
||||||
return ArticleDTO.fromJson(value);
|
return ArticleDTO.fromJson(value);
|
||||||
|
case 'CategorieDTO':
|
||||||
|
return CategorieDTO.fromJson(value);
|
||||||
case 'ConfigurationDTO':
|
case 'ConfigurationDTO':
|
||||||
return ConfigurationDTO.fromJson(value);
|
return ConfigurationDTO.fromJson(value);
|
||||||
|
case 'ContentDTO':
|
||||||
|
return ContentDTO.fromJson(value);
|
||||||
|
case 'ContentGeoPoint':
|
||||||
|
return ContentGeoPoint.fromJson(value);
|
||||||
case 'DeviceDTO':
|
case 'DeviceDTO':
|
||||||
return DeviceDTO.fromJson(value);
|
return DeviceDTO.fromJson(value);
|
||||||
case 'DeviceDetailDTO':
|
case 'DeviceDetailDTO':
|
||||||
@ -199,10 +205,8 @@ class ApiClient {
|
|||||||
return ExportConfigurationDTOAllOf.fromJson(value);
|
return ExportConfigurationDTOAllOf.fromJson(value);
|
||||||
case 'GeoPointDTO':
|
case 'GeoPointDTO':
|
||||||
return GeoPointDTO.fromJson(value);
|
return GeoPointDTO.fromJson(value);
|
||||||
case 'ImageDTO':
|
case 'GeoPointDTOCategorie':
|
||||||
return ImageDTO.fromJson(value);
|
return GeoPointDTOCategorie.fromJson(value);
|
||||||
case 'ImageGeoPoint':
|
|
||||||
return ImageGeoPoint.fromJson(value);
|
|
||||||
case 'Instance':
|
case 'Instance':
|
||||||
return Instance.fromJson(value);
|
return Instance.fromJson(value);
|
||||||
case 'InstanceDTO':
|
case 'InstanceDTO':
|
||||||
|
|||||||
@ -13,29 +13,39 @@ part of openapi.api;
|
|||||||
class AgendaDTO {
|
class AgendaDTO {
|
||||||
/// Returns a new [AgendaDTO] instance.
|
/// Returns a new [AgendaDTO] instance.
|
||||||
AgendaDTO({
|
AgendaDTO({
|
||||||
this.source_,
|
this.resourceId,
|
||||||
|
this.resourceUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? source_;
|
String? resourceId;
|
||||||
|
|
||||||
|
String? resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AgendaDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is AgendaDTO &&
|
||||||
other.source_ == source_;
|
other.resourceId == resourceId &&
|
||||||
|
other.resourceUrl == resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(source_ == null ? 0 : source_!.hashCode);
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AgendaDTO[source_=$source_]';
|
String toString() => 'AgendaDTO[resourceId=$resourceId, resourceUrl=$resourceUrl]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.source_ != null) {
|
if (this.resourceId != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceId'] = this.resourceId;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceId'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -59,7 +69,8 @@ class AgendaDTO {
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
return AgendaDTO(
|
return AgendaDTO(
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -17,7 +17,7 @@ class ArticleDTO {
|
|||||||
this.isContentTop,
|
this.isContentTop,
|
||||||
this.audioIds = const [],
|
this.audioIds = const [],
|
||||||
this.isReadAudioAuto,
|
this.isReadAudioAuto,
|
||||||
this.images = const [],
|
this.contents = const [],
|
||||||
});
|
});
|
||||||
|
|
||||||
List<TranslationDTO>? content;
|
List<TranslationDTO>? content;
|
||||||
@ -40,7 +40,7 @@ class ArticleDTO {
|
|||||||
///
|
///
|
||||||
bool? isReadAudioAuto;
|
bool? isReadAudioAuto;
|
||||||
|
|
||||||
List<ImageDTO>? images;
|
List<ContentDTO>? contents;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
|
||||||
@ -48,7 +48,7 @@ class ArticleDTO {
|
|||||||
other.isContentTop == isContentTop &&
|
other.isContentTop == isContentTop &&
|
||||||
other.audioIds == audioIds &&
|
other.audioIds == audioIds &&
|
||||||
other.isReadAudioAuto == isReadAudioAuto &&
|
other.isReadAudioAuto == isReadAudioAuto &&
|
||||||
other.images == images;
|
other.contents == contents;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
@ -57,10 +57,10 @@ class ArticleDTO {
|
|||||||
(isContentTop == null ? 0 : isContentTop!.hashCode) +
|
(isContentTop == null ? 0 : isContentTop!.hashCode) +
|
||||||
(audioIds == null ? 0 : audioIds!.hashCode) +
|
(audioIds == null ? 0 : audioIds!.hashCode) +
|
||||||
(isReadAudioAuto == null ? 0 : isReadAudioAuto!.hashCode) +
|
(isReadAudioAuto == null ? 0 : isReadAudioAuto!.hashCode) +
|
||||||
(images == null ? 0 : images!.hashCode);
|
(contents == null ? 0 : contents!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ArticleDTO[content=$content, isContentTop=$isContentTop, audioIds=$audioIds, isReadAudioAuto=$isReadAudioAuto, images=$images]';
|
String toString() => 'ArticleDTO[content=$content, isContentTop=$isContentTop, audioIds=$audioIds, isReadAudioAuto=$isReadAudioAuto, contents=$contents]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -84,10 +84,10 @@ class ArticleDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'isReadAudioAuto'] = null;
|
json[r'isReadAudioAuto'] = null;
|
||||||
}
|
}
|
||||||
if (this.images != null) {
|
if (this.contents != null) {
|
||||||
json[r'images'] = this.images;
|
json[r'contents'] = this.contents;
|
||||||
} else {
|
} else {
|
||||||
json[r'images'] = null;
|
json[r'contents'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -115,7 +115,7 @@ class ArticleDTO {
|
|||||||
isContentTop: mapValueOfType<bool>(json, r'isContentTop'),
|
isContentTop: mapValueOfType<bool>(json, r'isContentTop'),
|
||||||
audioIds: TranslationDTO.listFromJson(json[r'audioIds']),
|
audioIds: TranslationDTO.listFromJson(json[r'audioIds']),
|
||||||
isReadAudioAuto: mapValueOfType<bool>(json, r'isReadAudioAuto'),
|
isReadAudioAuto: mapValueOfType<bool>(json, r'isReadAudioAuto'),
|
||||||
images: ImageDTO.listFromJson(json[r'images']),
|
contents: ContentDTO.listFromJson(json[r'contents']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
123
manager_api/lib/model/categorie_dto.dart
Normal file
123
manager_api/lib/model/categorie_dto.dart
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
//
|
||||||
|
// 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 CategorieDTO {
|
||||||
|
/// Returns a new [CategorieDTO] instance.
|
||||||
|
CategorieDTO({
|
||||||
|
this.name,
|
||||||
|
this.icon,
|
||||||
|
});
|
||||||
|
|
||||||
|
String? name;
|
||||||
|
|
||||||
|
String? icon;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is CategorieDTO &&
|
||||||
|
other.name == name &&
|
||||||
|
other.icon == icon;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
// ignore: unnecessary_parenthesis
|
||||||
|
(name == null ? 0 : name!.hashCode) +
|
||||||
|
(icon == null ? 0 : icon!.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'CategorieDTO[name=$name, icon=$icon]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (this.name != null) {
|
||||||
|
json[r'name'] = this.name;
|
||||||
|
} else {
|
||||||
|
json[r'name'] = null;
|
||||||
|
}
|
||||||
|
if (this.icon != null) {
|
||||||
|
json[r'icon'] = this.icon;
|
||||||
|
} else {
|
||||||
|
json[r'icon'] = null;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [CategorieDTO] instance and imports its values from
|
||||||
|
/// [value] if it's a [Map], null otherwise.
|
||||||
|
// ignore: prefer_constructors_over_static_methods
|
||||||
|
static CategorieDTO? fromJson(dynamic value) {
|
||||||
|
if (value is Map) {
|
||||||
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
|
// 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 "CategorieDTO[$key]" is missing from JSON.');
|
||||||
|
assert(json[key] != null, 'Required key "CategorieDTO[$key]" has a null value in JSON.');
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}());
|
||||||
|
|
||||||
|
return CategorieDTO(
|
||||||
|
name: mapValueOfType<String>(json, r'name'),
|
||||||
|
icon: mapValueOfType<String>(json, r'icon'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static List<CategorieDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final result = <CategorieDTO>[];
|
||||||
|
if (json is List && json.isNotEmpty) {
|
||||||
|
for (final row in json) {
|
||||||
|
final value = CategorieDTO.fromJson(row);
|
||||||
|
if (value != null) {
|
||||||
|
result.add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result.toList(growable: growable);
|
||||||
|
}
|
||||||
|
|
||||||
|
static Map<String, CategorieDTO> mapFromJson(dynamic json) {
|
||||||
|
final map = <String, CategorieDTO>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
final value = CategorieDTO.fromJson(entry.value);
|
||||||
|
if (value != null) {
|
||||||
|
map[entry.key] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of CategorieDTO-objects as value to a dart map
|
||||||
|
static Map<String, List<CategorieDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final map = <String, List<CategorieDTO>>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
// ignore: parameter_assignments
|
||||||
|
json = json.cast<String, dynamic>();
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
map[entry.key] = CategorieDTO.listFromJson(entry.value, growable: growable,);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The list of required keys that must be present in a JSON.
|
||||||
|
static const requiredKeys = <String>{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@ -28,6 +28,9 @@ class ConfigurationDTO {
|
|||||||
this.instanceId,
|
this.instanceId,
|
||||||
this.sectionIds = const [],
|
this.sectionIds = const [],
|
||||||
this.pinCode,
|
this.pinCode,
|
||||||
|
this.loaderImageId,
|
||||||
|
this.loaderImageUrl,
|
||||||
|
this.weatherCity,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? id;
|
String? id;
|
||||||
@ -90,6 +93,12 @@ class ConfigurationDTO {
|
|||||||
///
|
///
|
||||||
int? pinCode;
|
int? pinCode;
|
||||||
|
|
||||||
|
String? loaderImageId;
|
||||||
|
|
||||||
|
String? loaderImageUrl;
|
||||||
|
|
||||||
|
String? weatherCity;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ConfigurationDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is ConfigurationDTO &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
@ -106,7 +115,10 @@ class ConfigurationDTO {
|
|||||||
other.isOffline == isOffline &&
|
other.isOffline == isOffline &&
|
||||||
other.instanceId == instanceId &&
|
other.instanceId == instanceId &&
|
||||||
other.sectionIds == sectionIds &&
|
other.sectionIds == sectionIds &&
|
||||||
other.pinCode == pinCode;
|
other.pinCode == pinCode &&
|
||||||
|
other.loaderImageId == loaderImageId &&
|
||||||
|
other.loaderImageUrl == loaderImageUrl &&
|
||||||
|
other.weatherCity == weatherCity;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
@ -125,10 +137,13 @@ class ConfigurationDTO {
|
|||||||
(isOffline == null ? 0 : isOffline!.hashCode) +
|
(isOffline == null ? 0 : isOffline!.hashCode) +
|
||||||
(instanceId == null ? 0 : instanceId!.hashCode) +
|
(instanceId == null ? 0 : instanceId!.hashCode) +
|
||||||
(sectionIds == null ? 0 : sectionIds!.hashCode) +
|
(sectionIds == null ? 0 : sectionIds!.hashCode) +
|
||||||
(pinCode == null ? 0 : pinCode!.hashCode);
|
(pinCode == null ? 0 : pinCode!.hashCode) +
|
||||||
|
(loaderImageId == null ? 0 : loaderImageId!.hashCode) +
|
||||||
|
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
|
||||||
|
(weatherCity == null ? 0 : weatherCity!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, pinCode=$pinCode]';
|
String toString() => 'ConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, pinCode=$pinCode, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, weatherCity=$weatherCity]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -207,6 +222,21 @@ class ConfigurationDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'pinCode'] = null;
|
json[r'pinCode'] = 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.weatherCity != null) {
|
||||||
|
json[r'weatherCity'] = this.weatherCity;
|
||||||
|
} else {
|
||||||
|
json[r'weatherCity'] = null;
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,6 +278,9 @@ class ConfigurationDTO {
|
|||||||
? (json[r'sectionIds'] as List).cast<String>()
|
? (json[r'sectionIds'] as List).cast<String>()
|
||||||
: const [],
|
: const [],
|
||||||
pinCode: mapValueOfType<int>(json, r'pinCode'),
|
pinCode: mapValueOfType<int>(json, r'pinCode'),
|
||||||
|
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
|
||||||
|
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
|
||||||
|
weatherCity: mapValueOfType<String>(json, r'weatherCity'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
179
manager_api/lib/model/content_dto.dart
Normal file
179
manager_api/lib/model/content_dto.dart
Normal file
@ -0,0 +1,179 @@
|
|||||||
|
//
|
||||||
|
// 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 ContentDTO {
|
||||||
|
/// Returns a new [ContentDTO] instance.
|
||||||
|
ContentDTO({
|
||||||
|
this.title = const [],
|
||||||
|
this.description = const [],
|
||||||
|
this.resourceId,
|
||||||
|
this.resourceUrl,
|
||||||
|
this.order,
|
||||||
|
this.resourceType,
|
||||||
|
});
|
||||||
|
|
||||||
|
List<TranslationDTO>? title;
|
||||||
|
|
||||||
|
List<TranslationDTO>? description;
|
||||||
|
|
||||||
|
String? resourceId;
|
||||||
|
|
||||||
|
String? resourceUrl;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// 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? order;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// 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;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is ContentDTO &&
|
||||||
|
other.title == title &&
|
||||||
|
other.description == description &&
|
||||||
|
other.resourceId == resourceId &&
|
||||||
|
other.resourceUrl == resourceUrl &&
|
||||||
|
other.order == order &&
|
||||||
|
other.resourceType == resourceType;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
// ignore: unnecessary_parenthesis
|
||||||
|
(title == null ? 0 : title!.hashCode) +
|
||||||
|
(description == null ? 0 : description!.hashCode) +
|
||||||
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode) +
|
||||||
|
(order == null ? 0 : order!.hashCode) +
|
||||||
|
(resourceType == null ? 0 : resourceType!.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'ContentDTO[title=$title, description=$description, resourceId=$resourceId, resourceUrl=$resourceUrl, order=$order, resourceType=$resourceType]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (this.title != null) {
|
||||||
|
json[r'title'] = this.title;
|
||||||
|
} else {
|
||||||
|
json[r'title'] = null;
|
||||||
|
}
|
||||||
|
if (this.description != null) {
|
||||||
|
json[r'description'] = this.description;
|
||||||
|
} else {
|
||||||
|
json[r'description'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceId != null) {
|
||||||
|
json[r'resourceId'] = this.resourceId;
|
||||||
|
} else {
|
||||||
|
json[r'resourceId'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
|
}
|
||||||
|
if (this.order != null) {
|
||||||
|
json[r'order'] = this.order;
|
||||||
|
} else {
|
||||||
|
json[r'order'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceType != null) {
|
||||||
|
json[r'resourceType'] = this.resourceType;
|
||||||
|
} else {
|
||||||
|
json[r'resourceType'] = null;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [ContentDTO] instance and imports its values from
|
||||||
|
/// [value] if it's a [Map], null otherwise.
|
||||||
|
// ignore: prefer_constructors_over_static_methods
|
||||||
|
static ContentDTO? fromJson(dynamic value) {
|
||||||
|
if (value is Map) {
|
||||||
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
|
// 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 "ContentDTO[$key]" is missing from JSON.');
|
||||||
|
assert(json[key] != null, 'Required key "ContentDTO[$key]" has a null value in JSON.');
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}());
|
||||||
|
|
||||||
|
return ContentDTO(
|
||||||
|
title: TranslationDTO.listFromJson(json[r'title']),
|
||||||
|
description: TranslationDTO.listFromJson(json[r'description']),
|
||||||
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
|
order: mapValueOfType<int>(json, r'order'),
|
||||||
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static List<ContentDTO> listFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final result = <ContentDTO>[];
|
||||||
|
if (json is List && json.isNotEmpty) {
|
||||||
|
for (final row in json) {
|
||||||
|
final value = ContentDTO.fromJson(row);
|
||||||
|
if (value != null) {
|
||||||
|
result.add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result.toList(growable: growable);
|
||||||
|
}
|
||||||
|
|
||||||
|
static Map<String, ContentDTO> mapFromJson(dynamic json) {
|
||||||
|
final map = <String, ContentDTO>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
final value = ContentDTO.fromJson(entry.value);
|
||||||
|
if (value != null) {
|
||||||
|
map[entry.key] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of ContentDTO-objects as value to a dart map
|
||||||
|
static Map<String, List<ContentDTO>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final map = <String, List<ContentDTO>>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
// ignore: parameter_assignments
|
||||||
|
json = json.cast<String, dynamic>();
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
map[entry.key] = ContentDTO.listFromJson(entry.value, growable: growable,);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The list of required keys that must be present in a JSON.
|
||||||
|
static const requiredKeys = <String>{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
151
manager_api/lib/model/content_geo_point.dart
Normal file
151
manager_api/lib/model/content_geo_point.dart
Normal file
@ -0,0 +1,151 @@
|
|||||||
|
//
|
||||||
|
// 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.latitude,
|
||||||
|
});
|
||||||
|
|
||||||
|
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? latitude;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is ContentGeoPoint &&
|
||||||
|
other.resourceId == resourceId &&
|
||||||
|
other.resourceType == resourceType &&
|
||||||
|
other.resourceUrl == resourceUrl &&
|
||||||
|
other.latitude == latitude;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
// ignore: unnecessary_parenthesis
|
||||||
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
|
(resourceType == null ? 0 : resourceType!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode) +
|
||||||
|
(latitude == null ? 0 : latitude!.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, latitude=$latitude]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
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.latitude != null) {
|
||||||
|
json[r'latitude'] = this.latitude;
|
||||||
|
} else {
|
||||||
|
json[r'latitude'] = 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<String, dynamic>();
|
||||||
|
|
||||||
|
// 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<String>(json, r'resourceId'),
|
||||||
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
|
latitude: mapValueOfType<String>(json, r'latitude'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static List<ContentGeoPoint> listFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final result = <ContentGeoPoint>[];
|
||||||
|
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<String, ContentGeoPoint> mapFromJson(dynamic json) {
|
||||||
|
final map = <String, ContentGeoPoint>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
json = json.cast<String, dynamic>(); // 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<String, List<ContentGeoPoint>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final map = <String, List<ContentGeoPoint>>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
// ignore: parameter_assignments
|
||||||
|
json = json.cast<String, dynamic>();
|
||||||
|
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 = <String>{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@ -28,6 +28,9 @@ class ExportConfigurationDTO {
|
|||||||
this.instanceId,
|
this.instanceId,
|
||||||
this.sectionIds = const [],
|
this.sectionIds = const [],
|
||||||
this.pinCode,
|
this.pinCode,
|
||||||
|
this.loaderImageId,
|
||||||
|
this.loaderImageUrl,
|
||||||
|
this.weatherCity,
|
||||||
this.sections = const [],
|
this.sections = const [],
|
||||||
this.resources = const [],
|
this.resources = const [],
|
||||||
});
|
});
|
||||||
@ -92,6 +95,12 @@ class ExportConfigurationDTO {
|
|||||||
///
|
///
|
||||||
int? pinCode;
|
int? pinCode;
|
||||||
|
|
||||||
|
String? loaderImageId;
|
||||||
|
|
||||||
|
String? loaderImageUrl;
|
||||||
|
|
||||||
|
String? weatherCity;
|
||||||
|
|
||||||
List<SectionDTO>? sections;
|
List<SectionDTO>? sections;
|
||||||
|
|
||||||
List<ResourceDTO>? resources;
|
List<ResourceDTO>? resources;
|
||||||
@ -113,6 +122,9 @@ class ExportConfigurationDTO {
|
|||||||
other.instanceId == instanceId &&
|
other.instanceId == instanceId &&
|
||||||
other.sectionIds == sectionIds &&
|
other.sectionIds == sectionIds &&
|
||||||
other.pinCode == pinCode &&
|
other.pinCode == pinCode &&
|
||||||
|
other.loaderImageId == loaderImageId &&
|
||||||
|
other.loaderImageUrl == loaderImageUrl &&
|
||||||
|
other.weatherCity == weatherCity &&
|
||||||
other.sections == sections &&
|
other.sections == sections &&
|
||||||
other.resources == resources;
|
other.resources == resources;
|
||||||
|
|
||||||
@ -134,11 +146,14 @@ class ExportConfigurationDTO {
|
|||||||
(instanceId == null ? 0 : instanceId!.hashCode) +
|
(instanceId == null ? 0 : instanceId!.hashCode) +
|
||||||
(sectionIds == null ? 0 : sectionIds!.hashCode) +
|
(sectionIds == null ? 0 : sectionIds!.hashCode) +
|
||||||
(pinCode == null ? 0 : pinCode!.hashCode) +
|
(pinCode == null ? 0 : pinCode!.hashCode) +
|
||||||
|
(loaderImageId == null ? 0 : loaderImageId!.hashCode) +
|
||||||
|
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
|
||||||
|
(weatherCity == null ? 0 : weatherCity!.hashCode) +
|
||||||
(sections == null ? 0 : sections!.hashCode) +
|
(sections == null ? 0 : sections!.hashCode) +
|
||||||
(resources == null ? 0 : resources!.hashCode);
|
(resources == null ? 0 : resources!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ExportConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, pinCode=$pinCode, sections=$sections, resources=$resources]';
|
String toString() => 'ExportConfigurationDTO[id=$id, label=$label, title=$title, imageId=$imageId, imageSource=$imageSource, primaryColor=$primaryColor, secondaryColor=$secondaryColor, languages=$languages, dateCreation=$dateCreation, isMobile=$isMobile, isTablet=$isTablet, isOffline=$isOffline, instanceId=$instanceId, sectionIds=$sectionIds, pinCode=$pinCode, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, weatherCity=$weatherCity, sections=$sections, resources=$resources]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -217,6 +232,21 @@ class ExportConfigurationDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'pinCode'] = null;
|
json[r'pinCode'] = 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.weatherCity != null) {
|
||||||
|
json[r'weatherCity'] = this.weatherCity;
|
||||||
|
} else {
|
||||||
|
json[r'weatherCity'] = null;
|
||||||
|
}
|
||||||
if (this.sections != null) {
|
if (this.sections != null) {
|
||||||
json[r'sections'] = this.sections;
|
json[r'sections'] = this.sections;
|
||||||
} else {
|
} else {
|
||||||
@ -268,6 +298,9 @@ class ExportConfigurationDTO {
|
|||||||
? (json[r'sectionIds'] as List).cast<String>()
|
? (json[r'sectionIds'] as List).cast<String>()
|
||||||
: const [],
|
: const [],
|
||||||
pinCode: mapValueOfType<int>(json, r'pinCode'),
|
pinCode: mapValueOfType<int>(json, r'pinCode'),
|
||||||
|
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
|
||||||
|
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
|
||||||
|
weatherCity: mapValueOfType<String>(json, r'weatherCity'),
|
||||||
sections: SectionDTO.listFromJson(json[r'sections']),
|
sections: SectionDTO.listFromJson(json[r'sections']),
|
||||||
resources: ResourceDTO.listFromJson(json[r'resources']),
|
resources: ResourceDTO.listFromJson(json[r'resources']),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -16,7 +16,8 @@ class GeoPointDTO {
|
|||||||
this.id,
|
this.id,
|
||||||
this.title = const [],
|
this.title = const [],
|
||||||
this.description = const [],
|
this.description = const [],
|
||||||
this.images = const [],
|
this.contents = const [],
|
||||||
|
this.categorie,
|
||||||
this.latitude,
|
this.latitude,
|
||||||
this.longitude,
|
this.longitude,
|
||||||
});
|
});
|
||||||
@ -33,7 +34,9 @@ class GeoPointDTO {
|
|||||||
|
|
||||||
List<TranslationDTO>? description;
|
List<TranslationDTO>? description;
|
||||||
|
|
||||||
List<ImageGeoPoint>? images;
|
List<ContentGeoPoint>? contents;
|
||||||
|
|
||||||
|
GeoPointDTOCategorie? categorie;
|
||||||
|
|
||||||
String? latitude;
|
String? latitude;
|
||||||
|
|
||||||
@ -44,7 +47,8 @@ class GeoPointDTO {
|
|||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.title == title &&
|
other.title == title &&
|
||||||
other.description == description &&
|
other.description == description &&
|
||||||
other.images == images &&
|
other.contents == contents &&
|
||||||
|
other.categorie == categorie &&
|
||||||
other.latitude == latitude &&
|
other.latitude == latitude &&
|
||||||
other.longitude == longitude;
|
other.longitude == longitude;
|
||||||
|
|
||||||
@ -54,12 +58,13 @@ class GeoPointDTO {
|
|||||||
(id == null ? 0 : id!.hashCode) +
|
(id == null ? 0 : id!.hashCode) +
|
||||||
(title == null ? 0 : title!.hashCode) +
|
(title == null ? 0 : title!.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
(images == null ? 0 : images!.hashCode) +
|
(contents == null ? 0 : contents!.hashCode) +
|
||||||
|
(categorie == null ? 0 : categorie!.hashCode) +
|
||||||
(latitude == null ? 0 : latitude!.hashCode) +
|
(latitude == null ? 0 : latitude!.hashCode) +
|
||||||
(longitude == null ? 0 : longitude!.hashCode);
|
(longitude == null ? 0 : longitude!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'GeoPointDTO[id=$id, title=$title, description=$description, images=$images, latitude=$latitude, longitude=$longitude]';
|
String toString() => 'GeoPointDTO[id=$id, title=$title, description=$description, contents=$contents, categorie=$categorie, latitude=$latitude, longitude=$longitude]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -78,10 +83,15 @@ class GeoPointDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'description'] = null;
|
json[r'description'] = null;
|
||||||
}
|
}
|
||||||
if (this.images != null) {
|
if (this.contents != null) {
|
||||||
json[r'images'] = this.images;
|
json[r'contents'] = this.contents;
|
||||||
} else {
|
} else {
|
||||||
json[r'images'] = null;
|
json[r'contents'] = null;
|
||||||
|
}
|
||||||
|
if (this.categorie != null) {
|
||||||
|
json[r'categorie'] = this.categorie;
|
||||||
|
} else {
|
||||||
|
json[r'categorie'] = null;
|
||||||
}
|
}
|
||||||
if (this.latitude != null) {
|
if (this.latitude != null) {
|
||||||
json[r'latitude'] = this.latitude;
|
json[r'latitude'] = this.latitude;
|
||||||
@ -118,7 +128,8 @@ class GeoPointDTO {
|
|||||||
id: mapValueOfType<int>(json, r'id'),
|
id: mapValueOfType<int>(json, r'id'),
|
||||||
title: TranslationDTO.listFromJson(json[r'title']),
|
title: TranslationDTO.listFromJson(json[r'title']),
|
||||||
description: TranslationDTO.listFromJson(json[r'description']),
|
description: TranslationDTO.listFromJson(json[r'description']),
|
||||||
images: ImageGeoPoint.listFromJson(json[r'images']),
|
contents: ContentGeoPoint.listFromJson(json[r'contents']),
|
||||||
|
categorie: GeoPointDTOCategorie.fromJson(json[r'categorie']),
|
||||||
latitude: mapValueOfType<String>(json, r'latitude'),
|
latitude: mapValueOfType<String>(json, r'latitude'),
|
||||||
longitude: mapValueOfType<String>(json, r'longitude'),
|
longitude: mapValueOfType<String>(json, r'longitude'),
|
||||||
);
|
);
|
||||||
|
|||||||
123
manager_api/lib/model/geo_point_dto_categorie.dart
Normal file
123
manager_api/lib/model/geo_point_dto_categorie.dart
Normal file
@ -0,0 +1,123 @@
|
|||||||
|
//
|
||||||
|
// 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 GeoPointDTOCategorie {
|
||||||
|
/// Returns a new [GeoPointDTOCategorie] instance.
|
||||||
|
GeoPointDTOCategorie({
|
||||||
|
this.name,
|
||||||
|
this.icon,
|
||||||
|
});
|
||||||
|
|
||||||
|
String? name;
|
||||||
|
|
||||||
|
String? icon;
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) => identical(this, other) || other is GeoPointDTOCategorie &&
|
||||||
|
other.name == name &&
|
||||||
|
other.icon == icon;
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode =>
|
||||||
|
// ignore: unnecessary_parenthesis
|
||||||
|
(name == null ? 0 : name!.hashCode) +
|
||||||
|
(icon == null ? 0 : icon!.hashCode);
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() => 'GeoPointDTOCategorie[name=$name, icon=$icon]';
|
||||||
|
|
||||||
|
Map<String, dynamic> toJson() {
|
||||||
|
final json = <String, dynamic>{};
|
||||||
|
if (this.name != null) {
|
||||||
|
json[r'name'] = this.name;
|
||||||
|
} else {
|
||||||
|
json[r'name'] = null;
|
||||||
|
}
|
||||||
|
if (this.icon != null) {
|
||||||
|
json[r'icon'] = this.icon;
|
||||||
|
} else {
|
||||||
|
json[r'icon'] = null;
|
||||||
|
}
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns a new [GeoPointDTOCategorie] instance and imports its values from
|
||||||
|
/// [value] if it's a [Map], null otherwise.
|
||||||
|
// ignore: prefer_constructors_over_static_methods
|
||||||
|
static GeoPointDTOCategorie? fromJson(dynamic value) {
|
||||||
|
if (value is Map) {
|
||||||
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
|
// 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 "GeoPointDTOCategorie[$key]" is missing from JSON.');
|
||||||
|
assert(json[key] != null, 'Required key "GeoPointDTOCategorie[$key]" has a null value in JSON.');
|
||||||
|
});
|
||||||
|
return true;
|
||||||
|
}());
|
||||||
|
|
||||||
|
return GeoPointDTOCategorie(
|
||||||
|
name: mapValueOfType<String>(json, r'name'),
|
||||||
|
icon: mapValueOfType<String>(json, r'icon'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
static List<GeoPointDTOCategorie> listFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final result = <GeoPointDTOCategorie>[];
|
||||||
|
if (json is List && json.isNotEmpty) {
|
||||||
|
for (final row in json) {
|
||||||
|
final value = GeoPointDTOCategorie.fromJson(row);
|
||||||
|
if (value != null) {
|
||||||
|
result.add(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result.toList(growable: growable);
|
||||||
|
}
|
||||||
|
|
||||||
|
static Map<String, GeoPointDTOCategorie> mapFromJson(dynamic json) {
|
||||||
|
final map = <String, GeoPointDTOCategorie>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
final value = GeoPointDTOCategorie.fromJson(entry.value);
|
||||||
|
if (value != null) {
|
||||||
|
map[entry.key] = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
// maps a json object with a list of GeoPointDTOCategorie-objects as value to a dart map
|
||||||
|
static Map<String, List<GeoPointDTOCategorie>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||||
|
final map = <String, List<GeoPointDTOCategorie>>{};
|
||||||
|
if (json is Map && json.isNotEmpty) {
|
||||||
|
// ignore: parameter_assignments
|
||||||
|
json = json.cast<String, dynamic>();
|
||||||
|
for (final entry in json.entries) {
|
||||||
|
map[entry.key] = GeoPointDTOCategorie.listFromJson(entry.value, growable: growable,);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// The list of required keys that must be present in a JSON.
|
||||||
|
static const requiredKeys = <String>{
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
@ -15,30 +15,41 @@ class LevelDTO {
|
|||||||
LevelDTO({
|
LevelDTO({
|
||||||
this.label = const [],
|
this.label = const [],
|
||||||
this.resourceId,
|
this.resourceId,
|
||||||
this.source_,
|
this.resourceType,
|
||||||
|
this.resourceUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
List<TranslationDTO>? label;
|
List<TranslationDTO>? label;
|
||||||
|
|
||||||
String? resourceId;
|
String? resourceId;
|
||||||
|
|
||||||
String? source_;
|
///
|
||||||
|
/// 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;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is LevelDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is LevelDTO &&
|
||||||
other.label == label &&
|
other.label == label &&
|
||||||
other.resourceId == resourceId &&
|
other.resourceId == resourceId &&
|
||||||
other.source_ == source_;
|
other.resourceType == resourceType &&
|
||||||
|
other.resourceUrl == resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(label == null ? 0 : label!.hashCode) +
|
(label == null ? 0 : label!.hashCode) +
|
||||||
(resourceId == null ? 0 : resourceId!.hashCode) +
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
(source_ == null ? 0 : source_!.hashCode);
|
(resourceType == null ? 0 : resourceType!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'LevelDTO[label=$label, resourceId=$resourceId, source_=$source_]';
|
String toString() => 'LevelDTO[label=$label, resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -52,10 +63,15 @@ class LevelDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'resourceId'] = null;
|
json[r'resourceId'] = null;
|
||||||
}
|
}
|
||||||
if (this.source_ != null) {
|
if (this.resourceType != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceType'] = this.resourceType;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceType'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -81,7 +97,8 @@ class LevelDTO {
|
|||||||
return LevelDTO(
|
return LevelDTO(
|
||||||
label: TranslationDTO.listFromJson(json[r'label']),
|
label: TranslationDTO.listFromJson(json[r'label']),
|
||||||
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -18,6 +18,7 @@ class MapDTO {
|
|||||||
this.points = const [],
|
this.points = const [],
|
||||||
this.iconResourceId,
|
this.iconResourceId,
|
||||||
this.iconSource,
|
this.iconSource,
|
||||||
|
this.categories = const [],
|
||||||
});
|
});
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -42,13 +43,16 @@ class MapDTO {
|
|||||||
|
|
||||||
String? iconSource;
|
String? iconSource;
|
||||||
|
|
||||||
|
List<CategorieDTO>? categories;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MapDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is MapDTO &&
|
||||||
other.zoom == zoom &&
|
other.zoom == zoom &&
|
||||||
other.mapType == mapType &&
|
other.mapType == mapType &&
|
||||||
other.points == points &&
|
other.points == points &&
|
||||||
other.iconResourceId == iconResourceId &&
|
other.iconResourceId == iconResourceId &&
|
||||||
other.iconSource == iconSource;
|
other.iconSource == iconSource &&
|
||||||
|
other.categories == categories;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
@ -57,10 +61,11 @@ class MapDTO {
|
|||||||
(mapType == null ? 0 : mapType!.hashCode) +
|
(mapType == null ? 0 : mapType!.hashCode) +
|
||||||
(points == null ? 0 : points!.hashCode) +
|
(points == null ? 0 : points!.hashCode) +
|
||||||
(iconResourceId == null ? 0 : iconResourceId!.hashCode) +
|
(iconResourceId == null ? 0 : iconResourceId!.hashCode) +
|
||||||
(iconSource == null ? 0 : iconSource!.hashCode);
|
(iconSource == null ? 0 : iconSource!.hashCode) +
|
||||||
|
(categories == null ? 0 : categories!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'MapDTO[zoom=$zoom, mapType=$mapType, points=$points, iconResourceId=$iconResourceId, iconSource=$iconSource]';
|
String toString() => 'MapDTO[zoom=$zoom, mapType=$mapType, points=$points, iconResourceId=$iconResourceId, iconSource=$iconSource, categories=$categories]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -89,6 +94,11 @@ class MapDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'iconSource'] = null;
|
json[r'iconSource'] = null;
|
||||||
}
|
}
|
||||||
|
if (this.categories != null) {
|
||||||
|
json[r'categories'] = this.categories;
|
||||||
|
} else {
|
||||||
|
json[r'categories'] = null;
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,6 +126,7 @@ class MapDTO {
|
|||||||
points: GeoPointDTO.listFromJson(json[r'points']),
|
points: GeoPointDTO.listFromJson(json[r'points']),
|
||||||
iconResourceId: mapValueOfType<String>(json, r'iconResourceId'),
|
iconResourceId: mapValueOfType<String>(json, r'iconResourceId'),
|
||||||
iconSource: mapValueOfType<String>(json, r'iconSource'),
|
iconSource: mapValueOfType<String>(json, r'iconSource'),
|
||||||
|
categories: CategorieDTO.listFromJson(json[r'categories']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -13,29 +13,39 @@ part of openapi.api;
|
|||||||
class PdfDTO {
|
class PdfDTO {
|
||||||
/// Returns a new [PdfDTO] instance.
|
/// Returns a new [PdfDTO] instance.
|
||||||
PdfDTO({
|
PdfDTO({
|
||||||
this.source_,
|
this.resourceId,
|
||||||
|
this.resourceUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
String? source_;
|
String? resourceId;
|
||||||
|
|
||||||
|
String? resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is PdfDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is PdfDTO &&
|
||||||
other.source_ == source_;
|
other.resourceId == resourceId &&
|
||||||
|
other.resourceUrl == resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(source_ == null ? 0 : source_!.hashCode);
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'PdfDTO[source_=$source_]';
|
String toString() => 'PdfDTO[resourceId=$resourceId, resourceUrl=$resourceUrl]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.source_ != null) {
|
if (this.resourceId != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceId'] = this.resourceId;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceId'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -59,7 +69,8 @@ class PdfDTO {
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
return PdfDTO(
|
return PdfDTO(
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -16,8 +16,9 @@ class PuzzleDTOImage {
|
|||||||
this.title = const [],
|
this.title = const [],
|
||||||
this.description = const [],
|
this.description = const [],
|
||||||
this.resourceId,
|
this.resourceId,
|
||||||
this.source_,
|
this.resourceUrl,
|
||||||
this.order,
|
this.order,
|
||||||
|
this.resourceType,
|
||||||
});
|
});
|
||||||
|
|
||||||
List<TranslationDTO>? title;
|
List<TranslationDTO>? title;
|
||||||
@ -26,7 +27,7 @@ class PuzzleDTOImage {
|
|||||||
|
|
||||||
String? resourceId;
|
String? resourceId;
|
||||||
|
|
||||||
String? source_;
|
String? resourceUrl;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
@ -36,13 +37,22 @@ class PuzzleDTOImage {
|
|||||||
///
|
///
|
||||||
int? order;
|
int? order;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// 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;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is PuzzleDTOImage &&
|
bool operator ==(Object other) => identical(this, other) || other is PuzzleDTOImage &&
|
||||||
other.title == title &&
|
other.title == title &&
|
||||||
other.description == description &&
|
other.description == description &&
|
||||||
other.resourceId == resourceId &&
|
other.resourceId == resourceId &&
|
||||||
other.source_ == source_ &&
|
other.resourceUrl == resourceUrl &&
|
||||||
other.order == order;
|
other.order == order &&
|
||||||
|
other.resourceType == resourceType;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
@ -50,11 +60,12 @@ class PuzzleDTOImage {
|
|||||||
(title == null ? 0 : title!.hashCode) +
|
(title == null ? 0 : title!.hashCode) +
|
||||||
(description == null ? 0 : description!.hashCode) +
|
(description == null ? 0 : description!.hashCode) +
|
||||||
(resourceId == null ? 0 : resourceId!.hashCode) +
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
(source_ == null ? 0 : source_!.hashCode) +
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode) +
|
||||||
(order == null ? 0 : order!.hashCode);
|
(order == null ? 0 : order!.hashCode) +
|
||||||
|
(resourceType == null ? 0 : resourceType!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'PuzzleDTOImage[title=$title, description=$description, resourceId=$resourceId, source_=$source_, order=$order]';
|
String toString() => 'PuzzleDTOImage[title=$title, description=$description, resourceId=$resourceId, resourceUrl=$resourceUrl, order=$order, resourceType=$resourceType]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -73,16 +84,21 @@ class PuzzleDTOImage {
|
|||||||
} else {
|
} else {
|
||||||
json[r'resourceId'] = null;
|
json[r'resourceId'] = null;
|
||||||
}
|
}
|
||||||
if (this.source_ != null) {
|
if (this.resourceUrl != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
if (this.order != null) {
|
if (this.order != null) {
|
||||||
json[r'order'] = this.order;
|
json[r'order'] = this.order;
|
||||||
} else {
|
} else {
|
||||||
json[r'order'] = null;
|
json[r'order'] = null;
|
||||||
}
|
}
|
||||||
|
if (this.resourceType != null) {
|
||||||
|
json[r'resourceType'] = this.resourceType;
|
||||||
|
} else {
|
||||||
|
json[r'resourceType'] = null;
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,8 +124,9 @@ class PuzzleDTOImage {
|
|||||||
title: TranslationDTO.listFromJson(json[r'title']),
|
title: TranslationDTO.listFromJson(json[r'title']),
|
||||||
description: TranslationDTO.listFromJson(json[r'description']),
|
description: TranslationDTO.listFromJson(json[r'description']),
|
||||||
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
order: mapValueOfType<int>(json, r'order'),
|
order: mapValueOfType<int>(json, r'order'),
|
||||||
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -16,7 +16,8 @@ class QuestionDTO {
|
|||||||
this.label = const [],
|
this.label = const [],
|
||||||
this.responses = const [],
|
this.responses = const [],
|
||||||
this.resourceId,
|
this.resourceId,
|
||||||
this.source_,
|
this.resourceType,
|
||||||
|
this.resourceUrl,
|
||||||
this.order,
|
this.order,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -26,7 +27,15 @@ class QuestionDTO {
|
|||||||
|
|
||||||
String? resourceId;
|
String? resourceId;
|
||||||
|
|
||||||
String? source_;
|
///
|
||||||
|
/// 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;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
@ -41,7 +50,8 @@ class QuestionDTO {
|
|||||||
other.label == label &&
|
other.label == label &&
|
||||||
other.responses == responses &&
|
other.responses == responses &&
|
||||||
other.resourceId == resourceId &&
|
other.resourceId == resourceId &&
|
||||||
other.source_ == source_ &&
|
other.resourceType == resourceType &&
|
||||||
|
other.resourceUrl == resourceUrl &&
|
||||||
other.order == order;
|
other.order == order;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -50,11 +60,12 @@ class QuestionDTO {
|
|||||||
(label == null ? 0 : label!.hashCode) +
|
(label == null ? 0 : label!.hashCode) +
|
||||||
(responses == null ? 0 : responses!.hashCode) +
|
(responses == null ? 0 : responses!.hashCode) +
|
||||||
(resourceId == null ? 0 : resourceId!.hashCode) +
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
(source_ == null ? 0 : source_!.hashCode) +
|
(resourceType == null ? 0 : resourceType!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode) +
|
||||||
(order == null ? 0 : order!.hashCode);
|
(order == null ? 0 : order!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'QuestionDTO[label=$label, responses=$responses, resourceId=$resourceId, source_=$source_, order=$order]';
|
String toString() => 'QuestionDTO[label=$label, responses=$responses, resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, order=$order]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -73,10 +84,15 @@ class QuestionDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'resourceId'] = null;
|
json[r'resourceId'] = null;
|
||||||
}
|
}
|
||||||
if (this.source_ != null) {
|
if (this.resourceType != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceType'] = this.resourceType;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceType'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
if (this.order != null) {
|
if (this.order != null) {
|
||||||
json[r'order'] = this.order;
|
json[r'order'] = this.order;
|
||||||
@ -108,7 +124,8 @@ class QuestionDTO {
|
|||||||
label: TranslationDTO.listFromJson(json[r'label']),
|
label: TranslationDTO.listFromJson(json[r'label']),
|
||||||
responses: ResponseDTO.listFromJson(json[r'responses']),
|
responses: ResponseDTO.listFromJson(json[r'responses']),
|
||||||
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
order: mapValueOfType<int>(json, r'order'),
|
order: mapValueOfType<int>(json, r'order'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,30 +15,41 @@ class QuizzDTOBadLevel {
|
|||||||
QuizzDTOBadLevel({
|
QuizzDTOBadLevel({
|
||||||
this.label = const [],
|
this.label = const [],
|
||||||
this.resourceId,
|
this.resourceId,
|
||||||
this.source_,
|
this.resourceType,
|
||||||
|
this.resourceUrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
List<TranslationDTO>? label;
|
List<TranslationDTO>? label;
|
||||||
|
|
||||||
String? resourceId;
|
String? resourceId;
|
||||||
|
|
||||||
String? source_;
|
///
|
||||||
|
/// 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;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is QuizzDTOBadLevel &&
|
bool operator ==(Object other) => identical(this, other) || other is QuizzDTOBadLevel &&
|
||||||
other.label == label &&
|
other.label == label &&
|
||||||
other.resourceId == resourceId &&
|
other.resourceId == resourceId &&
|
||||||
other.source_ == source_;
|
other.resourceType == resourceType &&
|
||||||
|
other.resourceUrl == resourceUrl;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(label == null ? 0 : label!.hashCode) +
|
(label == null ? 0 : label!.hashCode) +
|
||||||
(resourceId == null ? 0 : resourceId!.hashCode) +
|
(resourceId == null ? 0 : resourceId!.hashCode) +
|
||||||
(source_ == null ? 0 : source_!.hashCode);
|
(resourceType == null ? 0 : resourceType!.hashCode) +
|
||||||
|
(resourceUrl == null ? 0 : resourceUrl!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'QuizzDTOBadLevel[label=$label, resourceId=$resourceId, source_=$source_]';
|
String toString() => 'QuizzDTOBadLevel[label=$label, resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -52,10 +63,15 @@ class QuizzDTOBadLevel {
|
|||||||
} else {
|
} else {
|
||||||
json[r'resourceId'] = null;
|
json[r'resourceId'] = null;
|
||||||
}
|
}
|
||||||
if (this.source_ != null) {
|
if (this.resourceType != null) {
|
||||||
json[r'source'] = this.source_;
|
json[r'resourceType'] = this.resourceType;
|
||||||
} else {
|
} else {
|
||||||
json[r'source'] = null;
|
json[r'resourceType'] = null;
|
||||||
|
}
|
||||||
|
if (this.resourceUrl != null) {
|
||||||
|
json[r'resourceUrl'] = this.resourceUrl;
|
||||||
|
} else {
|
||||||
|
json[r'resourceUrl'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -81,7 +97,8 @@ class QuizzDTOBadLevel {
|
|||||||
return QuizzDTOBadLevel(
|
return QuizzDTOBadLevel(
|
||||||
label: TranslationDTO.listFromJson(json[r'label']),
|
label: TranslationDTO.listFromJson(json[r'label']),
|
||||||
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
resourceId: mapValueOfType<String>(json, r'resourceId'),
|
||||||
source_: mapValueOfType<String>(json, r'source'),
|
resourceType: ResourceType.fromJson(json[r'resourceType']),
|
||||||
|
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ class ResourceDTO {
|
|||||||
this.id,
|
this.id,
|
||||||
this.type,
|
this.type,
|
||||||
this.label,
|
this.label,
|
||||||
this.data,
|
this.url,
|
||||||
this.dateCreation,
|
this.dateCreation,
|
||||||
this.instanceId,
|
this.instanceId,
|
||||||
});
|
});
|
||||||
@ -33,7 +33,7 @@ class ResourceDTO {
|
|||||||
|
|
||||||
String? label;
|
String? label;
|
||||||
|
|
||||||
String? data;
|
String? url;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
@ -50,7 +50,7 @@ class ResourceDTO {
|
|||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.type == type &&
|
other.type == type &&
|
||||||
other.label == label &&
|
other.label == label &&
|
||||||
other.data == data &&
|
other.url == url &&
|
||||||
other.dateCreation == dateCreation &&
|
other.dateCreation == dateCreation &&
|
||||||
other.instanceId == instanceId;
|
other.instanceId == instanceId;
|
||||||
|
|
||||||
@ -60,12 +60,12 @@ class ResourceDTO {
|
|||||||
(id == null ? 0 : id!.hashCode) +
|
(id == null ? 0 : id!.hashCode) +
|
||||||
(type == null ? 0 : type!.hashCode) +
|
(type == null ? 0 : type!.hashCode) +
|
||||||
(label == null ? 0 : label!.hashCode) +
|
(label == null ? 0 : label!.hashCode) +
|
||||||
(data == null ? 0 : data!.hashCode) +
|
(url == null ? 0 : url!.hashCode) +
|
||||||
(dateCreation == null ? 0 : dateCreation!.hashCode) +
|
(dateCreation == null ? 0 : dateCreation!.hashCode) +
|
||||||
(instanceId == null ? 0 : instanceId!.hashCode);
|
(instanceId == null ? 0 : instanceId!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'ResourceDTO[id=$id, type=$type, label=$label, data=$data, dateCreation=$dateCreation, instanceId=$instanceId]';
|
String toString() => 'ResourceDTO[id=$id, type=$type, label=$label, url=$url, dateCreation=$dateCreation, instanceId=$instanceId]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@ -84,10 +84,10 @@ class ResourceDTO {
|
|||||||
} else {
|
} else {
|
||||||
json[r'label'] = null;
|
json[r'label'] = null;
|
||||||
}
|
}
|
||||||
if (this.data != null) {
|
if (this.url != null) {
|
||||||
json[r'data'] = this.data;
|
json[r'url'] = this.url;
|
||||||
} else {
|
} else {
|
||||||
json[r'data'] = null;
|
json[r'url'] = null;
|
||||||
}
|
}
|
||||||
if (this.dateCreation != null) {
|
if (this.dateCreation != null) {
|
||||||
json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String();
|
json[r'dateCreation'] = this.dateCreation!.toUtc().toIso8601String();
|
||||||
@ -124,7 +124,7 @@ class ResourceDTO {
|
|||||||
id: mapValueOfType<String>(json, r'id'),
|
id: mapValueOfType<String>(json, r'id'),
|
||||||
type: ResourceType.fromJson(json[r'type']),
|
type: ResourceType.fromJson(json[r'type']),
|
||||||
label: mapValueOfType<String>(json, r'label'),
|
label: mapValueOfType<String>(json, r'label'),
|
||||||
data: mapValueOfType<String>(json, r'data'),
|
url: mapValueOfType<String>(json, r'url'),
|
||||||
dateCreation: mapDateTime(json, r'dateCreation', ''),
|
dateCreation: mapDateTime(json, r'dateCreation', ''),
|
||||||
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
instanceId: mapValueOfType<String>(json, r'instanceId'),
|
||||||
);
|
);
|
||||||
|
|||||||
@ -13,29 +13,29 @@ part of openapi.api;
|
|||||||
class SliderDTO {
|
class SliderDTO {
|
||||||
/// Returns a new [SliderDTO] instance.
|
/// Returns a new [SliderDTO] instance.
|
||||||
SliderDTO({
|
SliderDTO({
|
||||||
this.images = const [],
|
this.contents = const [],
|
||||||
});
|
});
|
||||||
|
|
||||||
List<ImageDTO>? images;
|
List<ContentDTO>? contents;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SliderDTO &&
|
bool operator ==(Object other) => identical(this, other) || other is SliderDTO &&
|
||||||
other.images == images;
|
other.contents == contents;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(images == null ? 0 : images!.hashCode);
|
(contents == null ? 0 : contents!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'SliderDTO[images=$images]';
|
String toString() => 'SliderDTO[contents=$contents]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
if (this.images != null) {
|
if (this.contents != null) {
|
||||||
json[r'images'] = this.images;
|
json[r'contents'] = this.contents;
|
||||||
} else {
|
} else {
|
||||||
json[r'images'] = null;
|
json[r'contents'] = null;
|
||||||
}
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ class SliderDTO {
|
|||||||
}());
|
}());
|
||||||
|
|
||||||
return SliderDTO(
|
return SliderDTO(
|
||||||
images: ImageDTO.listFromJson(json[r'images']),
|
contents: ContentDTO.listFromJson(json[r'contents']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
32
manager_api/test/categorie_dto_test.dart
Normal file
32
manager_api/test/categorie_dto_test.dart
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// 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/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for CategorieDTO
|
||||||
|
void main() {
|
||||||
|
// final instance = CategorieDTO();
|
||||||
|
|
||||||
|
group('test CategorieDTO', () {
|
||||||
|
// String name
|
||||||
|
test('to test the property `name`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String icon
|
||||||
|
test('to test the property `icon`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
52
manager_api/test/content_dto_test.dart
Normal file
52
manager_api/test/content_dto_test.dart
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
//
|
||||||
|
// 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/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for ContentDTO
|
||||||
|
void main() {
|
||||||
|
// final instance = ContentDTO();
|
||||||
|
|
||||||
|
group('test ContentDTO', () {
|
||||||
|
// List<TranslationDTO> title (default value: const [])
|
||||||
|
test('to test the property `title`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// List<TranslationDTO> description (default value: const [])
|
||||||
|
test('to test the property `description`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String resourceId
|
||||||
|
test('to test the property `resourceId`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String resourceUrl
|
||||||
|
test('to test the property `resourceUrl`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// int order
|
||||||
|
test('to test the property `order`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// ResourceType resourceType
|
||||||
|
test('to test the property `resourceType`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
42
manager_api/test/content_geo_point_test.dart
Normal file
42
manager_api/test/content_geo_point_test.dart
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
//
|
||||||
|
// 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/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
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
32
manager_api/test/geo_point_dto_categorie_test.dart
Normal file
32
manager_api/test/geo_point_dto_categorie_test.dart
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
//
|
||||||
|
// 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/api.dart';
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
// tests for GeoPointDTOCategorie
|
||||||
|
void main() {
|
||||||
|
// final instance = GeoPointDTOCategorie();
|
||||||
|
|
||||||
|
group('test GeoPointDTOCategorie', () {
|
||||||
|
// String name
|
||||||
|
test('to test the property `name`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
// String icon
|
||||||
|
test('to test the property `icon`', () async {
|
||||||
|
// TODO
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.5.0+5
|
version: 2.0.0+6
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.1.0 <4.0.0"
|
sdk: ">=3.1.0 <4.0.0"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user