getByMonth method

List<int> getByMonth()

Implementation

List<int> getByMonth() {
  if (data['BYMONTH'] != null) {
    List<String> stringMonths = data['BYMONTH'].toString().split(',');
    List<int> months = stringMonths.map((e) => int.parse(e.toString())).toList();
    return months.isNotEmpty ? months : [int.parse(data['BYMONTH'].toString())];
  }
  return [];
}