votesRef property

List<String>? votesRef

Implementation

List<String>? get votesRef {
  List<String> _tempVotes = [];
  if (this.actesLegislatifs != null) {
    for (ActeLegislatifFromJson acte in this.actesLegislatifs!) {
      if (acte.votesRef != null && acte.votesRef != []) {
        for (String vote in acte.votesRef!) {
          if (vote.contains("L16")) {
            _tempVotes.add(vote);
          }
        }
      }
      if (acte.actesIntra != null && acte.actesIntra != []) {
        for (ActeLegislatifFromJson subActe
            in acte.actesIntra as List<ActeLegislatifFromJson>) {
          if (subActe.votesRef != null && subActe.votesRef != []) {
            for (String vote in subActe.votesRef!) {
              if (vote.contains("L16")) {
                _tempVotes.add(vote);
              }
            }
          }
          if (subActe.actesIntra != null && subActe.actesIntra != []) {
            for (ActeLegislatifFromJson subSubActe
                in subActe.actesIntra as List<ActeLegislatifFromJson>) {
              if (subSubActe.votesRef != null && subSubActe.votesRef != []) {
                for (String vote in subSubActe.votesRef!) {
                  if (vote.contains("L16")) {
                    _tempVotes.add(vote);
                  }
                }
              }
            }
          }
        }
      }
    }
  }
  return _tempVotes;
}