Update article

This commit is contained in:
Fransolet Thomas 2022-06-22 17:00:33 +02:00
parent 2b145f757c
commit aa59561dc1
4 changed files with 3 additions and 31 deletions

View File

@ -8,8 +8,6 @@ import 'package:managerapi/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 []]
**content** | [**List<TranslationDTO>**](TranslationDTO.md) | | [optional] [default to const []]
**qrCode** | **String** | | [optional]
**isContentTop** | **bool** | | [optional]

View File

@ -12,8 +12,6 @@ part of openapi.api;
class ArticleDTO {
/// Returns a new [ArticleDTO] instance.
ArticleDTO({
this.title,
this.description,
this.content,
this.qrCode,
this.isContentTop,
@ -22,10 +20,6 @@ class ArticleDTO {
this.images,
});
List<TranslationDTO> title;
List<TranslationDTO> description;
List<TranslationDTO> content;
String qrCode;
@ -40,8 +34,6 @@ class ArticleDTO {
@override
bool operator ==(Object other) => identical(this, other) || other is ArticleDTO &&
other.title == title &&
other.description == description &&
other.content == content &&
other.qrCode == qrCode &&
other.isContentTop == isContentTop &&
@ -51,8 +43,6 @@ class ArticleDTO {
@override
int get hashCode =>
(title == null ? 0 : title.hashCode) +
(description == null ? 0 : description.hashCode) +
(content == null ? 0 : content.hashCode) +
(qrCode == null ? 0 : qrCode.hashCode) +
(isContentTop == null ? 0 : isContentTop.hashCode) +
@ -61,16 +51,10 @@ class ArticleDTO {
(images == null ? 0 : images.hashCode);
@override
String toString() => 'ArticleDTO[title=$title, description=$description, content=$content, qrCode=$qrCode, isContentTop=$isContentTop, audioId=$audioId, isReadAudioAuto=$isReadAudioAuto, images=$images]';
String toString() => 'ArticleDTO[content=$content, qrCode=$qrCode, isContentTop=$isContentTop, audioId=$audioId, isReadAudioAuto=$isReadAudioAuto, images=$images]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (title != null) {
json[r'title'] = title;
}
if (description != null) {
json[r'description'] = description;
}
if (content != null) {
json[r'content'] = content;
}
@ -97,8 +81,6 @@ class ArticleDTO {
static ArticleDTO fromJson(Map<String, dynamic> json) => json == null
? null
: ArticleDTO(
title: TranslationDTO.listFromJson(json[r'title']),
description: TranslationDTO.listFromJson(json[r'description']),
content: TranslationDTO.listFromJson(json[r'content']),
qrCode: json[r'qrCode'],
isContentTop: json[r'isContentTop'],

View File

@ -1829,16 +1829,6 @@ components:
type: object
additionalProperties: false
properties:
title:
type: array
nullable: true
items:
$ref: '#/components/schemas/TranslationDTO'
description:
type: array
nullable: true
items:
$ref: '#/components/schemas/TranslationDTO'
content:
type: array
nullable: true

View File

@ -1420,6 +1420,8 @@ components:
format: date-time
isMobile:
type: boolean
isTablet:
type: boolean
isOffline:
type: boolean
ExportConfigurationDTO: