getBoardByOrganizationId method
- String organizationId
override
Implementation
@override
Future<List<BoardEntity>> getBoardByOrganizationId(String organizationId) async {
var response = await client.getBoardByOrganizationId(organizationId);
if(response.isError()){
throw Error();
}
var result = response.getOrThrow();
return result.map((e) => BoardEntity(
e.name,
e.description,
id: e.id)
).toList();
}