mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-08-26 09:29:40 +00:00
Implemented PR notes by extracting widgets into their own classes.
This commit is contained in:
@ -28,10 +28,10 @@ class RemoteCommunitiesService implements CommunitiesService {
|
||||
if (param.search.isNotEmpty && param.search != 'null')
|
||||
'search': param.search,
|
||||
},
|
||||
expectedResponseModel: (json) {
|
||||
final data = json as Map<String, dynamic>;
|
||||
return CommunitiesPaginationModel.fromJson(data, CommunityModel.fromJson);
|
||||
},
|
||||
expectedResponseModel: (json) => CommunitiesPaginationModel.fromJson(
|
||||
json as Map<String, dynamic>,
|
||||
CommunityModel.fromJsonList,
|
||||
),
|
||||
);
|
||||
|
||||
return response;
|
||||
|
Reference in New Issue
Block a user