DrmSystems.fromJson constructor

DrmSystems.fromJson(
  1. Map json_
)

Implementation

DrmSystems.fromJson(core.Map json_)
    : this(
        clearkey: json_.containsKey('clearkey')
            ? Clearkey.fromJson(
                json_['clearkey'] as core.Map<core.String, core.dynamic>)
            : null,
        fairplay: json_.containsKey('fairplay')
            ? Fairplay.fromJson(
                json_['fairplay'] as core.Map<core.String, core.dynamic>)
            : null,
        playready: json_.containsKey('playready')
            ? Playready.fromJson(
                json_['playready'] as core.Map<core.String, core.dynamic>)
            : null,
        widevine: json_.containsKey('widevine')
            ? Widevine.fromJson(
                json_['widevine'] as core.Map<core.String, core.dynamic>)
            : null,
      );