get method
Implementation
Future<PaggedResponseMessage<SubscriptionModel>> get({
String id = '',
String partOfUrl = '',
String apiUserToken = '',
}) async {
var result = await apiResource.getById(
id: id,
partOfUrl: partOfUrl,
apiUserToken: apiUserToken,
);
return PaggedResponseMessage<SubscriptionModel>(
totalItems: result["totalItems"],
items: (result["items"] as List).map((e) => SubscriptionModel.fromMap(e)).toList(),
);
}