// // AUTO-GENERATED FILE, DO NOT MODIFY! // // ignore_for_file: unused_element import 'package:copy_with_extension/copy_with_extension.dart'; import 'package:json_annotation/json_annotation.dart'; part 'user_out.g.dart'; @CopyWith() @JsonSerializable( checked: true, createToJson: true, disallowUnrecognizedKeys: false, explicitToJson: true, ) class UserOut { /// Returns a new [UserOut] instance. UserOut({ required this.email, required this.id, }); @JsonKey( name: r'email', required: true, includeIfNull: false, ) final String email; @JsonKey( name: r'id', required: true, includeIfNull: false, ) final int id; @override bool operator ==(Object other) => identical(this, other) || other is UserOut && other.email == email && other.id == id; @override int get hashCode => email.hashCode + id.hashCode; factory UserOut.fromJson(Map json) => _$UserOutFromJson(json); Map toJson() => _$UserOutToJson(this); @override String toString() { return toJson().toString(); } }