|
|
|
|
@ -16,7 +16,6 @@ class CreateLibraryDto {
|
|
|
|
|
this.exclusionPatterns = const [],
|
|
|
|
|
this.importPaths = const [],
|
|
|
|
|
this.isVisible,
|
|
|
|
|
this.isWatched,
|
|
|
|
|
this.name,
|
|
|
|
|
required this.ownerId,
|
|
|
|
|
required this.type,
|
|
|
|
|
@ -34,14 +33,6 @@ class CreateLibraryDto {
|
|
|
|
|
///
|
|
|
|
|
bool? isVisible;
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
/// 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.
|
|
|
|
|
///
|
|
|
|
|
bool? isWatched;
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
/// 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
|
|
|
|
|
@ -59,7 +50,6 @@ class CreateLibraryDto {
|
|
|
|
|
_deepEquality.equals(other.exclusionPatterns, exclusionPatterns) &&
|
|
|
|
|
_deepEquality.equals(other.importPaths, importPaths) &&
|
|
|
|
|
other.isVisible == isVisible &&
|
|
|
|
|
other.isWatched == isWatched &&
|
|
|
|
|
other.name == name &&
|
|
|
|
|
other.ownerId == ownerId &&
|
|
|
|
|
other.type == type;
|
|
|
|
|
@ -70,13 +60,12 @@ class CreateLibraryDto {
|
|
|
|
|
(exclusionPatterns.hashCode) +
|
|
|
|
|
(importPaths.hashCode) +
|
|
|
|
|
(isVisible == null ? 0 : isVisible!.hashCode) +
|
|
|
|
|
(isWatched == null ? 0 : isWatched!.hashCode) +
|
|
|
|
|
(name == null ? 0 : name!.hashCode) +
|
|
|
|
|
(ownerId.hashCode) +
|
|
|
|
|
(type.hashCode);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
String toString() => 'CreateLibraryDto[exclusionPatterns=$exclusionPatterns, importPaths=$importPaths, isVisible=$isVisible, isWatched=$isWatched, name=$name, ownerId=$ownerId, type=$type]';
|
|
|
|
|
String toString() => 'CreateLibraryDto[exclusionPatterns=$exclusionPatterns, importPaths=$importPaths, isVisible=$isVisible, name=$name, ownerId=$ownerId, type=$type]';
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
|
final json = <String, dynamic>{};
|
|
|
|
|
@ -87,11 +76,6 @@ class CreateLibraryDto {
|
|
|
|
|
} else {
|
|
|
|
|
// json[r'isVisible'] = null;
|
|
|
|
|
}
|
|
|
|
|
if (this.isWatched != null) {
|
|
|
|
|
json[r'isWatched'] = this.isWatched;
|
|
|
|
|
} else {
|
|
|
|
|
// json[r'isWatched'] = null;
|
|
|
|
|
}
|
|
|
|
|
if (this.name != null) {
|
|
|
|
|
json[r'name'] = this.name;
|
|
|
|
|
} else {
|
|
|
|
|
@ -117,7 +101,6 @@ class CreateLibraryDto {
|
|
|
|
|
? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
|
|
|
|
|
: const [],
|
|
|
|
|
isVisible: mapValueOfType<bool>(json, r'isVisible'),
|
|
|
|
|
isWatched: mapValueOfType<bool>(json, r'isWatched'),
|
|
|
|
|
name: mapValueOfType<String>(json, r'name'),
|
|
|
|
|
ownerId: mapValueOfType<String>(json, r'ownerId')!,
|
|
|
|
|
type: LibraryType.fromJson(json[r'type'])!,
|
|
|
|
|
|