|
| 1 | +// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. |
| 2 | +// ignore_for_file: unused_element |
| 3 | +import 'package:algolia_client_search/src/model/updated_at_response.dart'; |
| 4 | +import 'package:algolia_client_search/src/model/watch_response.dart'; |
| 5 | + |
| 6 | +import 'package:json_annotation/json_annotation.dart'; |
| 7 | + |
| 8 | +part 'replace_all_objects_with_transformation_response.g.dart'; |
| 9 | + |
| 10 | +@JsonSerializable() |
| 11 | +final class ReplaceAllObjectsWithTransformationResponse { |
| 12 | + /// Returns a new [ReplaceAllObjectsWithTransformationResponse] instance. |
| 13 | + const ReplaceAllObjectsWithTransformationResponse({ |
| 14 | + required this.copyOperationResponse, |
| 15 | + required this.watchResponses, |
| 16 | + required this.moveOperationResponse, |
| 17 | + }); |
| 18 | + |
| 19 | + @JsonKey(name: r'copyOperationResponse') |
| 20 | + final UpdatedAtResponse copyOperationResponse; |
| 21 | + |
| 22 | + /// The response of the `push` request(s). |
| 23 | + @JsonKey(name: r'watchResponses') |
| 24 | + final List<WatchResponse> watchResponses; |
| 25 | + |
| 26 | + @JsonKey(name: r'moveOperationResponse') |
| 27 | + final UpdatedAtResponse moveOperationResponse; |
| 28 | + |
| 29 | + @override |
| 30 | + bool operator ==(Object other) => |
| 31 | + identical(this, other) || |
| 32 | + other is ReplaceAllObjectsWithTransformationResponse && |
| 33 | + other.copyOperationResponse == copyOperationResponse && |
| 34 | + other.watchResponses == watchResponses && |
| 35 | + other.moveOperationResponse == moveOperationResponse; |
| 36 | + |
| 37 | + @override |
| 38 | + int get hashCode => |
| 39 | + copyOperationResponse.hashCode + |
| 40 | + watchResponses.hashCode + |
| 41 | + moveOperationResponse.hashCode; |
| 42 | + |
| 43 | + factory ReplaceAllObjectsWithTransformationResponse.fromJson( |
| 44 | + Map<String, dynamic> json) => |
| 45 | + _$ReplaceAllObjectsWithTransformationResponseFromJson(json); |
| 46 | + |
| 47 | + Map<String, dynamic> toJson() => |
| 48 | + _$ReplaceAllObjectsWithTransformationResponseToJson(this); |
| 49 | + |
| 50 | + @override |
| 51 | + String toString() { |
| 52 | + return toJson().toString(); |
| 53 | + } |
| 54 | +} |
0 commit comments