Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed Apr 25, 2024
1 parent f0e3460 commit 6de1da7
Show file tree
Hide file tree
Showing 50 changed files with 578 additions and 490 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ class AdditionalPropertiesClass {



@override
bool operator ==(Object other) => identical(this, other) || other is AdditionalPropertiesClass &&
other.mapProperty == mapProperty &&
other.mapOfMapProperty == mapOfMapProperty;

@override
int get hashCode =>
mapProperty.hashCode +
mapOfMapProperty.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is AdditionalPropertiesClass &&
other.mapProperty == mapProperty &&
other.mapOfMapProperty == mapOfMapProperty;

@override
int get hashCode =>
mapProperty.hashCode +
mapOfMapProperty.hashCode;

factory AdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$AdditionalPropertiesClassFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,17 @@ class AllOfWithSingleRef {



@override
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
other.username == username &&
other.singleRefType == singleRefType;

@override
int get hashCode =>
username.hashCode +
singleRefType.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
other.username == username &&
other.singleRefType == singleRefType;

@override
int get hashCode =>
username.hashCode +
singleRefType.hashCode;

factory AllOfWithSingleRef.fromJson(Map<String, dynamic> json) => _$AllOfWithSingleRefFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ class Animal {



@override
bool operator ==(Object other) => identical(this, other) || other is Animal &&
other.className == className &&
other.color == color;

@override
int get hashCode =>
className.hashCode +
color.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is Animal &&
other.className == className &&
other.color == color;

@override
int get hashCode =>
className.hashCode +
color.hashCode;

factory Animal.fromJson(Map<String, dynamic> json) => _$AnimalFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@ class ApiResponse {



@override
bool operator ==(Object other) => identical(this, other) || other is ApiResponse &&
other.code == code &&
other.type == type &&
other.message == message;

@override
int get hashCode =>
code.hashCode +
type.hashCode +
message.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ApiResponse &&
other.code == code &&
other.type == type &&
other.message == message;

@override
int get hashCode =>
code.hashCode +
type.hashCode +
message.hashCode;

factory ApiResponse.fromJson(Map<String, dynamic> json) => _$ApiResponseFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ class ArrayOfArrayOfNumberOnly {



@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
other.arrayArrayNumber == arrayArrayNumber;

@override
int get hashCode =>
arrayArrayNumber.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
other.arrayArrayNumber == arrayArrayNumber;

@override
int get hashCode =>
arrayArrayNumber.hashCode;

factory ArrayOfArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfArrayOfNumberOnlyFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ class ArrayOfNumberOnly {



@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
other.arrayNumber == arrayNumber;

@override
int get hashCode =>
arrayNumber.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
other.arrayNumber == arrayNumber;

@override
int get hashCode =>
arrayNumber.hashCode;

factory ArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfNumberOnlyFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,19 @@ class ArrayTest {



@override
bool operator ==(Object other) => identical(this, other) || other is ArrayTest &&
other.arrayOfString == arrayOfString &&
other.arrayArrayOfInteger == arrayArrayOfInteger &&
other.arrayArrayOfModel == arrayArrayOfModel;

@override
int get hashCode =>
arrayOfString.hashCode +
arrayArrayOfInteger.hashCode +
arrayArrayOfModel.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ArrayTest &&
other.arrayOfString == arrayOfString &&
other.arrayArrayOfInteger == arrayArrayOfInteger &&
other.arrayArrayOfModel == arrayArrayOfModel;

@override
int get hashCode =>
arrayOfString.hashCode +
arrayArrayOfInteger.hashCode +
arrayArrayOfModel.hashCode;

factory ArrayTest.fromJson(Map<String, dynamic> json) => _$ArrayTestFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,23 +104,25 @@ class Capitalization {



@override
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
other.smallCamel == smallCamel &&
other.capitalCamel == capitalCamel &&
other.smallSnake == smallSnake &&
other.capitalSnake == capitalSnake &&
other.sCAETHFlowPoints == sCAETHFlowPoints &&
other.ATT_NAME == ATT_NAME;

@override
int get hashCode =>
smallCamel.hashCode +
capitalCamel.hashCode +
smallSnake.hashCode +
capitalSnake.hashCode +
sCAETHFlowPoints.hashCode +
ATT_NAME.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
other.smallCamel == smallCamel &&
other.capitalCamel == capitalCamel &&
other.smallSnake == smallSnake &&
other.capitalSnake == capitalSnake &&
other.sCAETHFlowPoints == sCAETHFlowPoints &&
other.ATT_NAME == ATT_NAME;

@override
int get hashCode =>
smallCamel.hashCode +
capitalCamel.hashCode +
smallSnake.hashCode +
capitalSnake.hashCode +
sCAETHFlowPoints.hashCode +
ATT_NAME.hashCode;

factory Capitalization.fromJson(Map<String, dynamic> json) => _$CapitalizationFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,19 @@ class Cat {



@override
bool operator ==(Object other) => identical(this, other) || other is Cat &&
other.className == className &&
other.color == color &&
other.declawed == declawed;

@override
int get hashCode =>
className.hashCode +
color.hashCode +
declawed.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is Cat &&
other.className == className &&
other.color == color &&
other.declawed == declawed;

@override
int get hashCode =>
className.hashCode +
color.hashCode +
declawed.hashCode;

factory Cat.fromJson(Map<String, dynamic> json) => _$CatFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,17 @@ class Category {



@override
bool operator ==(Object other) => identical(this, other) || other is Category &&
other.id == id &&
other.name == name;

@override
int get hashCode =>
id.hashCode +
name.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is Category &&
other.id == id &&
other.name == name;

@override
int get hashCode =>
id.hashCode +
name.hashCode;

factory Category.fromJson(Map<String, dynamic> json) => _$CategoryFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,19 @@ class ChildWithNullable {



@override
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
other.type == type &&
other.nullableProperty == nullableProperty &&
other.otherProperty == otherProperty;

@override
int get hashCode =>
type.hashCode +
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
otherProperty.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
other.type == type &&
other.nullableProperty == nullableProperty &&
other.otherProperty == otherProperty;

@override
int get hashCode =>
type.hashCode +
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
otherProperty.hashCode;

factory ChildWithNullable.fromJson(Map<String, dynamic> json) => _$ChildWithNullableFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@ class ClassModel {



@override
bool operator ==(Object other) => identical(this, other) || other is ClassModel &&
other.class_ == class_;

@override
int get hashCode =>
class_.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is ClassModel &&
other.class_ == class_;

@override
int get hashCode =>
class_.hashCode;

factory ClassModel.fromJson(Map<String, dynamic> json) => _$ClassModelFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ class DeprecatedObject {



@override
bool operator ==(Object other) => identical(this, other) || other is DeprecatedObject &&
other.name == name;

@override
int get hashCode =>
name.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is DeprecatedObject &&
other.name == name;

@override
int get hashCode =>
name.hashCode;

factory DeprecatedObject.fromJson(Map<String, dynamic> json) => _$DeprecatedObjectFromJson(json);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,19 @@ class Dog {



@override
bool operator ==(Object other) => identical(this, other) || other is Dog &&
other.className == className &&
other.color == color &&
other.breed == breed;

@override
int get hashCode =>
className.hashCode +
color.hashCode +
breed.hashCode;

@override
bool operator ==(Object other) => identical(this, other) || other is Dog &&
other.className == className &&
other.color == color &&
other.breed == breed;

@override
int get hashCode =>
className.hashCode +
color.hashCode +
breed.hashCode;

factory Dog.fromJson(Map<String, dynamic> json) => _$DogFromJson(json);

Expand Down
Loading

0 comments on commit 6de1da7

Please sign in to comment.