GroupApi class

A class to handle API interactions related to groups.

Constructors

GroupApi({required Dio dio, required String baseUrl, required String apiKey})
Constructs a GroupApi instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

create({required String name, required List<ContactModel> contacts}) Future<ApiResponseModel<GroupModel?>>
Creates a new group.
delete({required String id}) Future<ApiResponseModel<void>>
Deletes one or more groups from the group list.
get({required String id}) Future<ApiResponseModel<GroupModel?>>
Retrieves a group from the group list.
list({int? count, int? page, SortList? sort, String? orderBy}) Future<ApiResponseModel<List<GroupModel>>>
Fetches a list of groups.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
update({required String id, required String name, required List<ContactModel> contacts}) Future<ApiResponseModel<GroupModel?>>
Updates a group in the group list.

Operators

operator ==(Object other) bool
The equality operator.
inherited