toJson method

dynamic toJson()

Implementation

dynamic toJson() {
  return elements.map((e) => e.toJson()).toList();
}