update openapi

This commit is contained in:
Alex Tran 2023-08-02 16:10:55 -05:00
parent 5e4403bb2e
commit 5eb8d7e8b0
6 changed files with 24 additions and 24 deletions

View file

@ -666,13 +666,13 @@ export interface AssetStatsResponseDto {
* @type {number}
* @memberof AssetStatsResponseDto
*/
'videos': number;
'total': number;
/**
*
* @type {number}
* @memberof AssetStatsResponseDto
*/
'total': number;
'videos': number;
}
/**
*

View file

@ -9,8 +9,8 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**images** | **int** | |
**videos** | **int** | |
**total** | **int** | |
**videos** | **int** | |
[[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

@ -14,37 +14,37 @@ class AssetStatsResponseDto {
/// Returns a new [AssetStatsResponseDto] instance.
AssetStatsResponseDto({
required this.images,
required this.videos,
required this.total,
required this.videos,
});
int images;
int videos;
int total;
int videos;
@override
bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto &&
other.images == images &&
other.videos == videos &&
other.total == total;
other.total == total &&
other.videos == videos;
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
(images.hashCode) +
(videos.hashCode) +
(total.hashCode);
(total.hashCode) +
(videos.hashCode);
@override
String toString() => 'AssetStatsResponseDto[images=$images, videos=$videos, total=$total]';
String toString() => 'AssetStatsResponseDto[images=$images, total=$total, videos=$videos]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'images'] = this.images;
json[r'videos'] = this.videos;
json[r'total'] = this.total;
json[r'videos'] = this.videos;
return json;
}
@ -57,8 +57,8 @@ class AssetStatsResponseDto {
return AssetStatsResponseDto(
images: mapValueOfType<int>(json, r'images')!,
videos: mapValueOfType<int>(json, r'videos')!,
total: mapValueOfType<int>(json, r'total')!,
videos: mapValueOfType<int>(json, r'videos')!,
);
}
return null;
@ -107,8 +107,8 @@ class AssetStatsResponseDto {
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'images',
'videos',
'total',
'videos',
};
}

View file

@ -21,13 +21,13 @@ void main() {
// TODO
});
// int videos
test('to test the property `videos`', () async {
// int total
test('to test the property `total`', () async {
// TODO
});
// int total
test('to test the property `total`', () async {
// int videos
test('to test the property `videos`', () async {
// TODO
});

View file

@ -4973,15 +4973,14 @@
"type": "object"
},
"AssetStatsResponseDto": {
"type": "object",
"properties": {
"images": {
"type": "integer"
},
"videos": {
"total": {
"type": "integer"
},
"total": {
"videos": {
"type": "integer"
}
},
@ -4989,7 +4988,8 @@
"images",
"videos",
"total"
]
],
"type": "object"
},
"AssetTypeEnum": {
"enum": [

View file

@ -666,13 +666,13 @@ export interface AssetStatsResponseDto {
* @type {number}
* @memberof AssetStatsResponseDto
*/
'videos': number;
'total': number;
/**
*
* @type {number}
* @memberof AssetStatsResponseDto
*/
'total': number;
'videos': number;
}
/**
*