TTSubtitle.fromJson constructor

TTSubtitle.fromJson(
  1. Map<String, dynamic> json
)

Implementation

TTSubtitle.fromJson(Map<String, dynamic> json)
    : subtitleId = json['sub_id'],
      url = json['url'],
      expire = json['expire'] ?? 0,
      format = json['format'] ?? "webvtt",
      language = json['language'],
      languageId = json['language_id'] ?? 0;