toJson method

Map<String, Object?> toJson()

Returns a representation of this object as a JSON object.

Implementation

Map<String, Object?> toJson() => {
      "id": id,
      "info": info?.toJson(),
      "status": status?.encode(),
      "type": type?.encode(),
      "streams": streams?.map((e) => e.toJson()).toList()
    };