-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
users/get-frequently-replied-usersを使う
- Loading branch information
1 parent
d5df14a
commit e269436
Showing
4 changed files
with
234 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
lib/src/data/users/users_get_frequently_replied_users_request.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
|
||
part 'users_get_frequently_replied_users_request.freezed.dart'; | ||
part 'users_get_frequently_replied_users_request.g.dart'; | ||
|
||
@freezed | ||
class UsersGetFrequentlyRepliedUsersRequest | ||
with _$UsersGetFrequentlyRepliedUsersRequest { | ||
const factory UsersGetFrequentlyRepliedUsersRequest({ | ||
required String userId, | ||
int? limit, | ||
}) = _UsersGetFrequentlyRepliedUsersRequest; | ||
|
||
factory UsersGetFrequentlyRepliedUsersRequest.fromJson( | ||
Map<String, Object?> json) => | ||
_$UsersGetFrequentlyRepliedUsersRequestFromJson(json); | ||
} |
185 changes: 185 additions & 0 deletions
185
lib/src/data/users/users_get_frequently_replied_users_request.freezed.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
// coverage:ignore-file | ||
// GENERATED CODE - DO NOT MODIFY BY HAND | ||
// ignore_for_file: type=lint | ||
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark | ||
|
||
part of 'users_get_frequently_replied_users_request.dart'; | ||
|
||
// ************************************************************************** | ||
// FreezedGenerator | ||
// ************************************************************************** | ||
|
||
T _$identity<T>(T value) => value; | ||
|
||
final _privateConstructorUsedError = UnsupportedError( | ||
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); | ||
|
||
UsersGetFrequentlyRepliedUsersRequest | ||
_$UsersGetFrequentlyRepliedUsersRequestFromJson(Map<String, dynamic> json) { | ||
return _UsersGetFrequentlyRepliedUsersRequest.fromJson(json); | ||
} | ||
|
||
/// @nodoc | ||
mixin _$UsersGetFrequentlyRepliedUsersRequest { | ||
String get userId => throw _privateConstructorUsedError; | ||
int? get limit => throw _privateConstructorUsedError; | ||
|
||
Map<String, dynamic> toJson() => throw _privateConstructorUsedError; | ||
@JsonKey(ignore: true) | ||
$UsersGetFrequentlyRepliedUsersRequestCopyWith< | ||
UsersGetFrequentlyRepliedUsersRequest> | ||
get copyWith => throw _privateConstructorUsedError; | ||
} | ||
|
||
/// @nodoc | ||
abstract class $UsersGetFrequentlyRepliedUsersRequestCopyWith<$Res> { | ||
factory $UsersGetFrequentlyRepliedUsersRequestCopyWith( | ||
UsersGetFrequentlyRepliedUsersRequest value, | ||
$Res Function(UsersGetFrequentlyRepliedUsersRequest) then) = | ||
_$UsersGetFrequentlyRepliedUsersRequestCopyWithImpl<$Res, | ||
UsersGetFrequentlyRepliedUsersRequest>; | ||
@useResult | ||
$Res call({String userId, int? limit}); | ||
} | ||
|
||
/// @nodoc | ||
class _$UsersGetFrequentlyRepliedUsersRequestCopyWithImpl<$Res, | ||
$Val extends UsersGetFrequentlyRepliedUsersRequest> | ||
implements $UsersGetFrequentlyRepliedUsersRequestCopyWith<$Res> { | ||
_$UsersGetFrequentlyRepliedUsersRequestCopyWithImpl(this._value, this._then); | ||
|
||
// ignore: unused_field | ||
final $Val _value; | ||
// ignore: unused_field | ||
final $Res Function($Val) _then; | ||
|
||
@pragma('vm:prefer-inline') | ||
@override | ||
$Res call({ | ||
Object? userId = null, | ||
Object? limit = freezed, | ||
}) { | ||
return _then(_value.copyWith( | ||
userId: null == userId | ||
? _value.userId | ||
: userId // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
limit: freezed == limit | ||
? _value.limit | ||
: limit // ignore: cast_nullable_to_non_nullable | ||
as int?, | ||
) as $Val); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
abstract class _$$UsersGetFrequentlyRepliedUsersRequestImplCopyWith<$Res> | ||
implements $UsersGetFrequentlyRepliedUsersRequestCopyWith<$Res> { | ||
factory _$$UsersGetFrequentlyRepliedUsersRequestImplCopyWith( | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl value, | ||
$Res Function(_$UsersGetFrequentlyRepliedUsersRequestImpl) then) = | ||
__$$UsersGetFrequentlyRepliedUsersRequestImplCopyWithImpl<$Res>; | ||
@override | ||
@useResult | ||
$Res call({String userId, int? limit}); | ||
} | ||
|
||
/// @nodoc | ||
class __$$UsersGetFrequentlyRepliedUsersRequestImplCopyWithImpl<$Res> | ||
extends _$UsersGetFrequentlyRepliedUsersRequestCopyWithImpl<$Res, | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl> | ||
implements _$$UsersGetFrequentlyRepliedUsersRequestImplCopyWith<$Res> { | ||
__$$UsersGetFrequentlyRepliedUsersRequestImplCopyWithImpl( | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl _value, | ||
$Res Function(_$UsersGetFrequentlyRepliedUsersRequestImpl) _then) | ||
: super(_value, _then); | ||
|
||
@pragma('vm:prefer-inline') | ||
@override | ||
$Res call({ | ||
Object? userId = null, | ||
Object? limit = freezed, | ||
}) { | ||
return _then(_$UsersGetFrequentlyRepliedUsersRequestImpl( | ||
userId: null == userId | ||
? _value.userId | ||
: userId // ignore: cast_nullable_to_non_nullable | ||
as String, | ||
limit: freezed == limit | ||
? _value.limit | ||
: limit // ignore: cast_nullable_to_non_nullable | ||
as int?, | ||
)); | ||
} | ||
} | ||
|
||
/// @nodoc | ||
@JsonSerializable() | ||
class _$UsersGetFrequentlyRepliedUsersRequestImpl | ||
implements _UsersGetFrequentlyRepliedUsersRequest { | ||
const _$UsersGetFrequentlyRepliedUsersRequestImpl( | ||
{required this.userId, this.limit}); | ||
|
||
factory _$UsersGetFrequentlyRepliedUsersRequestImpl.fromJson( | ||
Map<String, dynamic> json) => | ||
_$$UsersGetFrequentlyRepliedUsersRequestImplFromJson(json); | ||
|
||
@override | ||
final String userId; | ||
@override | ||
final int? limit; | ||
|
||
@override | ||
String toString() { | ||
return 'UsersGetFrequentlyRepliedUsersRequest(userId: $userId, limit: $limit)'; | ||
} | ||
|
||
@override | ||
bool operator ==(Object other) { | ||
return identical(this, other) || | ||
(other.runtimeType == runtimeType && | ||
other is _$UsersGetFrequentlyRepliedUsersRequestImpl && | ||
(identical(other.userId, userId) || other.userId == userId) && | ||
(identical(other.limit, limit) || other.limit == limit)); | ||
} | ||
|
||
@JsonKey(ignore: true) | ||
@override | ||
int get hashCode => Object.hash(runtimeType, userId, limit); | ||
|
||
@JsonKey(ignore: true) | ||
@override | ||
@pragma('vm:prefer-inline') | ||
_$$UsersGetFrequentlyRepliedUsersRequestImplCopyWith< | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl> | ||
get copyWith => __$$UsersGetFrequentlyRepliedUsersRequestImplCopyWithImpl< | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl>(this, _$identity); | ||
|
||
@override | ||
Map<String, dynamic> toJson() { | ||
return _$$UsersGetFrequentlyRepliedUsersRequestImplToJson( | ||
this, | ||
); | ||
} | ||
} | ||
|
||
abstract class _UsersGetFrequentlyRepliedUsersRequest | ||
implements UsersGetFrequentlyRepliedUsersRequest { | ||
const factory _UsersGetFrequentlyRepliedUsersRequest( | ||
{required final String userId, | ||
final int? limit}) = _$UsersGetFrequentlyRepliedUsersRequestImpl; | ||
|
||
factory _UsersGetFrequentlyRepliedUsersRequest.fromJson( | ||
Map<String, dynamic> json) = | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl.fromJson; | ||
|
||
@override | ||
String get userId; | ||
@override | ||
int? get limit; | ||
@override | ||
@JsonKey(ignore: true) | ||
_$$UsersGetFrequentlyRepliedUsersRequestImplCopyWith< | ||
_$UsersGetFrequentlyRepliedUsersRequestImpl> | ||
get copyWith => throw _privateConstructorUsedError; | ||
} |
22 changes: 22 additions & 0 deletions
22
lib/src/data/users/users_get_frequently_replied_users_request.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters