SpekeKeyProviderCmaf.fromJson constructor

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

Implementation

factory SpekeKeyProviderCmaf.fromJson(Map<String, dynamic> json) {
  return SpekeKeyProviderCmaf(
    certificateArn: json['certificateArn'] as String?,
    dashSignaledSystemIds: (json['dashSignaledSystemIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    hlsSignaledSystemIds: (json['hlsSignaledSystemIds'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    resourceId: json['resourceId'] as String?,
    url: json['url'] as String?,
  );
}