alertsGetActive function

Future<List<Alert>?> alertsGetActive()

Implementation

Future<List<Alert>?> alertsGetActive() async {
  List? json = await _clientPost(PlurkEndpoints.alertsGetActive());
  if (json == null) {
    return null;
  } else {
    List<Alert> returnList = json.map((e) => Alert.fromJson(e)).toList();
    return returnList;
  }
}