toJson method

Object toJson()

Converts this contents object to JSON-compatible values.

Implementation

Object toJson() => values.map((content) => content.toJson()).toList();