convertJsonToLocationModel method

void convertJsonToLocationModel()

Implementation

void convertJsonToLocationModel() {
  for (var i = 0; i < allLocationNotifications.length; i++) {
    try {
      if ((allLocationNotifications[i].atValue!.value != null) &&
          (allLocationNotifications[i].atValue!.value != 'null')) {
        var locationNotificationModel = LocationNotificationModel.fromJson(
            jsonDecode(allLocationNotifications[i].atValue!.value));
        allLocationNotifications[i].locationNotificationModel =
            locationNotificationModel;
      }
    } catch (e) {
      print('convertJsonToLocationModel error :$e');
    }
  }
}