toJsonFromList static method

List toJsonFromList(
  1. List<Paragraph> paragraphs
)

Implementation

static List<dynamic> toJsonFromList(List<Paragraph> paragraphs) {
  return paragraphs.map((p) => p.toJson()).toList();
}