chore(server): open-api memory lane number generation (#8314)

chore(server): openaapi memory lane number generation
This commit is contained in:
Alex
2024-03-27 22:27:26 -05:00
committed by GitHub
parent e1c2135850
commit 9b705e4450
5 changed files with 8 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**assets** | [**List<AssetResponseDto>**](AssetResponseDto.md) | | [default to const []]
**title** | **String** | |
**yearsAgo** | **num** | |
**yearsAgo** | **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

@@ -22,7 +22,7 @@ class MemoryLaneResponseDto {
String title;
num yearsAgo;
int yearsAgo;
@override
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
@@ -58,7 +58,7 @@ class MemoryLaneResponseDto {
return MemoryLaneResponseDto(
assets: AssetResponseDto.listFromJson(json[r'assets']),
title: mapValueOfType<String>(json, r'title')!,
yearsAgo: num.parse('${json[r'yearsAgo']}'),
yearsAgo: mapValueOfType<int>(json, r'yearsAgo')!,
);
}
return null;

View File

@@ -26,7 +26,7 @@ void main() {
// TODO
});
// num yearsAgo
// int yearsAgo
test('to test the property `yearsAgo`', () async {
// TODO
});