toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this object.

Implementation

Map<String, dynamic> toJson() => {
      ApiFields.path: items.map((item) => item.toJson()).toList(),
    };