toJson method

Map toJson()

Implementation

Map toJson() => {
      "type": type,
      "id": id,
      "data": data.map((item) => item.toJson()).toList(),
    };