toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "data": data,
      "length": length,
      "status": status,
      "type": type,
    }.clearNulls();