deps: open-api generator (#6655)

* deps: open-api generator

* fix: unused sed/replace
This commit is contained in:
Jason Rasmussen 2024-01-26 11:40:28 -05:00 committed by GitHub
parent 78a2fa8569
commit 2e39243670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
195 changed files with 1907 additions and 1545 deletions

View file

@ -23,8 +23,8 @@ class SmartInfoResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto &&
other.objects == objects &&
other.tags == tags;
_deepEquality.equals(other.objects, objects) &&
_deepEquality.equals(other.tags, tags);
@override
int get hashCode =>
@ -58,11 +58,11 @@ class SmartInfoResponseDto {
final json = value.cast<String, dynamic>();
return SmartInfoResponseDto(
objects: json[r'objects'] is List
? (json[r'objects'] as List).cast<String>()
objects: json[r'objects'] is Iterable
? (json[r'objects'] as Iterable).cast<String>().toList(growable: false)
: const [],
tags: json[r'tags'] is List
? (json[r'tags'] as List).cast<String>()
tags: json[r'tags'] is Iterable
? (json[r'tags'] as Iterable).cast<String>().toList(growable: false)
: const [],
);
}