toJson method

List<Map<String, dynamic>> toJson()

Serializes a list of JSONable into a List<Map<String, dynamic>>.

Implementation

List<Map<String, dynamic>> toJson() =>
    this.map((it) => it.toJson()).whereNotNull().toList();