update service generation

This commit is contained in:
Thomas Fransolet 2023-12-22 16:03:57 +01:00
parent 2a93ec497b
commit 7635577b26
7 changed files with 12 additions and 54 deletions

View File

@ -22,7 +22,6 @@ Name | Type | Description | Notes
**isOffline** | **bool** | | [optional] **isOffline** | **bool** | | [optional]
**instanceId** | **String** | | [optional] **instanceId** | **String** | | [optional]
**sectionIds** | **List<String>** | | [optional] [default to const []] **sectionIds** | **List<String>** | | [optional] [default to const []]
**pinCode** | **int** | | [optional]
**loaderImageId** | **String** | | [optional] **loaderImageId** | **String** | | [optional]
**loaderImageUrl** | **String** | | [optional] **loaderImageUrl** | **String** | | [optional]
**weatherCity** | **String** | | [optional] **weatherCity** | **String** | | [optional]

View File

@ -11,7 +11,7 @@ Name | Type | Description | Notes
**resourceId** | **String** | | [optional] **resourceId** | **String** | | [optional]
**resourceType** | [**ResourceType**](ResourceType.md) | | [optional] **resourceType** | [**ResourceType**](ResourceType.md) | | [optional]
**resourceUrl** | **String** | | [optional] **resourceUrl** | **String** | | [optional]
**latitude** | **String** | | [optional] **resourceName** | **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)

View File

@ -22,7 +22,6 @@ Name | Type | Description | Notes
**isOffline** | **bool** | | [optional] **isOffline** | **bool** | | [optional]
**instanceId** | **String** | | [optional] **instanceId** | **String** | | [optional]
**sectionIds** | **List<String>** | | [optional] [default to const []] **sectionIds** | **List<String>** | | [optional] [default to const []]
**pinCode** | **int** | | [optional]
**loaderImageId** | **String** | | [optional] **loaderImageId** | **String** | | [optional]
**loaderImageUrl** | **String** | | [optional] **loaderImageUrl** | **String** | | [optional]
**weatherCity** | **String** | | [optional] **weatherCity** | **String** | | [optional]

View File

@ -27,7 +27,6 @@ class ConfigurationDTO {
this.isOffline, this.isOffline,
this.instanceId, this.instanceId,
this.sectionIds = const [], this.sectionIds = const [],
this.pinCode,
this.loaderImageId, this.loaderImageId,
this.loaderImageUrl, this.loaderImageUrl,
this.weatherCity, this.weatherCity,
@ -85,14 +84,6 @@ class ConfigurationDTO {
List<String>? sectionIds; List<String>? sectionIds;
///
/// 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? pinCode;
String? loaderImageId; String? loaderImageId;
String? loaderImageUrl; String? loaderImageUrl;
@ -115,7 +106,6 @@ class ConfigurationDTO {
other.isOffline == isOffline && other.isOffline == isOffline &&
other.instanceId == instanceId && other.instanceId == instanceId &&
other.sectionIds == sectionIds && other.sectionIds == sectionIds &&
other.pinCode == pinCode &&
other.loaderImageId == loaderImageId && other.loaderImageId == loaderImageId &&
other.loaderImageUrl == loaderImageUrl && other.loaderImageUrl == loaderImageUrl &&
other.weatherCity == weatherCity; other.weatherCity == weatherCity;
@ -137,13 +127,12 @@ 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) +
(loaderImageId == null ? 0 : loaderImageId!.hashCode) + (loaderImageId == null ? 0 : loaderImageId!.hashCode) +
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
(weatherCity == null ? 0 : weatherCity!.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, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, weatherCity=$weatherCity]'; 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, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, weatherCity=$weatherCity]';
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final json = <String, dynamic>{}; final json = <String, dynamic>{};
@ -217,11 +206,6 @@ class ConfigurationDTO {
} else { } else {
json[r'sectionIds'] = null; json[r'sectionIds'] = null;
} }
if (this.pinCode != null) {
json[r'pinCode'] = this.pinCode;
} else {
json[r'pinCode'] = null;
}
if (this.loaderImageId != null) { if (this.loaderImageId != null) {
json[r'loaderImageId'] = this.loaderImageId; json[r'loaderImageId'] = this.loaderImageId;
} else { } else {
@ -277,7 +261,6 @@ class ConfigurationDTO {
sectionIds: json[r'sectionIds'] is List sectionIds: json[r'sectionIds'] is List
? (json[r'sectionIds'] as List).cast<String>() ? (json[r'sectionIds'] as List).cast<String>()
: const [], : const [],
pinCode: mapValueOfType<int>(json, r'pinCode'),
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'), loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'), loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
weatherCity: mapValueOfType<String>(json, r'weatherCity'), weatherCity: mapValueOfType<String>(json, r'weatherCity'),

View File

@ -16,7 +16,7 @@ class ContentGeoPoint {
this.resourceId, this.resourceId,
this.resourceType, this.resourceType,
this.resourceUrl, this.resourceUrl,
this.latitude, this.resourceName,
}); });
String? resourceId; String? resourceId;
@ -31,14 +31,14 @@ class ContentGeoPoint {
String? resourceUrl; String? resourceUrl;
String? latitude; String? resourceName;
@override @override
bool operator ==(Object other) => identical(this, other) || other is ContentGeoPoint && bool operator ==(Object other) => identical(this, other) || other is ContentGeoPoint &&
other.resourceId == resourceId && other.resourceId == resourceId &&
other.resourceType == resourceType && other.resourceType == resourceType &&
other.resourceUrl == resourceUrl && other.resourceUrl == resourceUrl &&
other.latitude == latitude; other.resourceName == resourceName;
@override @override
int get hashCode => int get hashCode =>
@ -46,10 +46,10 @@ class ContentGeoPoint {
(resourceId == null ? 0 : resourceId!.hashCode) + (resourceId == null ? 0 : resourceId!.hashCode) +
(resourceType == null ? 0 : resourceType!.hashCode) + (resourceType == null ? 0 : resourceType!.hashCode) +
(resourceUrl == null ? 0 : resourceUrl!.hashCode) + (resourceUrl == null ? 0 : resourceUrl!.hashCode) +
(latitude == null ? 0 : latitude!.hashCode); (resourceName == null ? 0 : resourceName!.hashCode);
@override @override
String toString() => 'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, latitude=$latitude]'; String toString() => 'ContentGeoPoint[resourceId=$resourceId, resourceType=$resourceType, resourceUrl=$resourceUrl, resourceName=$resourceName]';
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final json = <String, dynamic>{}; final json = <String, dynamic>{};
@ -68,10 +68,10 @@ class ContentGeoPoint {
} else { } else {
json[r'resourceUrl'] = null; json[r'resourceUrl'] = null;
} }
if (this.latitude != null) { if (this.resourceName != null) {
json[r'latitude'] = this.latitude; json[r'resourceName'] = this.resourceName;
} else { } else {
json[r'latitude'] = null; json[r'resourceName'] = null;
} }
return json; return json;
} }
@ -98,7 +98,7 @@ class ContentGeoPoint {
resourceId: mapValueOfType<String>(json, r'resourceId'), resourceId: mapValueOfType<String>(json, r'resourceId'),
resourceType: ResourceType.fromJson(json[r'resourceType']), resourceType: ResourceType.fromJson(json[r'resourceType']),
resourceUrl: mapValueOfType<String>(json, r'resourceUrl'), resourceUrl: mapValueOfType<String>(json, r'resourceUrl'),
latitude: mapValueOfType<String>(json, r'latitude'), resourceName: mapValueOfType<String>(json, r'resourceName'),
); );
} }
return null; return null;

View File

@ -27,7 +27,6 @@ class ExportConfigurationDTO {
this.isOffline, this.isOffline,
this.instanceId, this.instanceId,
this.sectionIds = const [], this.sectionIds = const [],
this.pinCode,
this.loaderImageId, this.loaderImageId,
this.loaderImageUrl, this.loaderImageUrl,
this.weatherCity, this.weatherCity,
@ -87,14 +86,6 @@ class ExportConfigurationDTO {
List<String>? sectionIds; List<String>? sectionIds;
///
/// 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? pinCode;
String? loaderImageId; String? loaderImageId;
String? loaderImageUrl; String? loaderImageUrl;
@ -121,7 +112,6 @@ class ExportConfigurationDTO {
other.isOffline == isOffline && other.isOffline == isOffline &&
other.instanceId == instanceId && other.instanceId == instanceId &&
other.sectionIds == sectionIds && other.sectionIds == sectionIds &&
other.pinCode == pinCode &&
other.loaderImageId == loaderImageId && other.loaderImageId == loaderImageId &&
other.loaderImageUrl == loaderImageUrl && other.loaderImageUrl == loaderImageUrl &&
other.weatherCity == weatherCity && other.weatherCity == weatherCity &&
@ -145,7 +135,6 @@ class ExportConfigurationDTO {
(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) +
(loaderImageId == null ? 0 : loaderImageId!.hashCode) + (loaderImageId == null ? 0 : loaderImageId!.hashCode) +
(loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) + (loaderImageUrl == null ? 0 : loaderImageUrl!.hashCode) +
(weatherCity == null ? 0 : weatherCity!.hashCode) + (weatherCity == null ? 0 : weatherCity!.hashCode) +
@ -153,7 +142,7 @@ class ExportConfigurationDTO {
(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, loaderImageId=$loaderImageId, loaderImageUrl=$loaderImageUrl, weatherCity=$weatherCity, 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, 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>{};
@ -227,11 +216,6 @@ class ExportConfigurationDTO {
} else { } else {
json[r'sectionIds'] = null; json[r'sectionIds'] = null;
} }
if (this.pinCode != null) {
json[r'pinCode'] = this.pinCode;
} else {
json[r'pinCode'] = null;
}
if (this.loaderImageId != null) { if (this.loaderImageId != null) {
json[r'loaderImageId'] = this.loaderImageId; json[r'loaderImageId'] = this.loaderImageId;
} else { } else {
@ -297,7 +281,6 @@ class ExportConfigurationDTO {
sectionIds: json[r'sectionIds'] is List sectionIds: json[r'sectionIds'] is List
? (json[r'sectionIds'] as List).cast<String>() ? (json[r'sectionIds'] as List).cast<String>()
: const [], : const [],
pinCode: mapValueOfType<int>(json, r'pinCode'),
loaderImageId: mapValueOfType<String>(json, r'loaderImageId'), loaderImageId: mapValueOfType<String>(json, r'loaderImageId'),
loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'), loaderImageUrl: mapValueOfType<String>(json, r'loaderImageUrl'),
weatherCity: mapValueOfType<String>(json, r'weatherCity'), weatherCity: mapValueOfType<String>(json, r'weatherCity'),

View File

@ -76,12 +76,6 @@ class SectionDTO {
/// ///
DateTime? dateCreation; DateTime? dateCreation;
///
/// 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; int? order;
String? instanceId; String? instanceId;