forked from Nexus/nexus
treewide(refactor): rename files to follow the same style
This commit is contained in:
parent
15d441e4c4
commit
7992f0e815
81 changed files with 167 additions and 167 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/requests/membership_action.dart";
|
||||
part "set_membership_request.freezed.dart";
|
||||
part "set_membership_request.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class SetMembershipRequest with _$SetMembershipRequest {
|
||||
const factory SetMembershipRequest({
|
||||
required String userId,
|
||||
required String roomId,
|
||||
|
||||
String? reason,
|
||||
@JsonKey(name: "action") required MembershipAction action,
|
||||
@Default(false) @JsonKey(name: "msc4293_redact_events") bool redact,
|
||||
}) = _SetMembershipRequest;
|
||||
|
||||
factory SetMembershipRequest.fromJson(Map<String, Object?> json) =>
|
||||
_$SetMembershipRequestFromJson(json);
|
||||
}
|
||||
Loading…
Reference in a new issue