feat: Added updatePartial endpoint

This commit is contained in:
Deven Joshi
2021-02-18 18:14:12 +05:30
parent 779c6f46f3
commit ac21bc27ff
3 changed files with 38 additions and 0 deletions
@@ -247,6 +247,20 @@ class UpdateChannelResponse extends _BaseResponse {
_$UpdateChannelResponseFromJson(json);
}
/// Model response for [Channel.updatePartial] api call
@JsonSerializable(createToJson: false)
class PartialUpdateChannelResponse extends _BaseResponse {
/// Updated channel
ChannelModel channel;
/// Channel members
List<Member> members;
/// Create a new instance from a json
static PartialUpdateChannelResponse fromJson(Map<String, dynamic> json) =>
_$PartialUpdateChannelResponseFromJson(json);
}
/// Model response for [Channel.inviteMembers] api call
@JsonSerializable(createToJson: false)
class InviteMembersResponse extends _BaseResponse {