toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => {
      "urls": urls == null ? [] : List<dynamic>.from(urls!.map((x) => x)),
      'cacheKey': cacheKey,
      'vid': vid,
      "urlExpiredTimes": urlExpiredTimes == null ? [] : List<dynamic>.from(urlExpiredTimes!.map((x) => x)),
      'isHDRSource': isHDRSource,
      'encodeType': encodeType.idx,
      'sourceType': sourceType.index,
    };