toJson method

List<int> toJson()

Implementation

List<int> toJson() {
  final list = <int>[];
  for (var i = 0; i < length; i++) {
    list.add(this[i] ? 1 : 0);
  }
  return list;
}