InputCaptions.fromJson constructor

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

Implementation

factory InputCaptions.fromJson(Map<String, dynamic> json) {
  return InputCaptions(
    captionSources: (json['CaptionSources'] as List?)
        ?.whereNotNull()
        .map((e) => CaptionSource.fromJson(e as Map<String, dynamic>))
        .toList(),
    mergePolicy: json['MergePolicy'] as String?,
  );
}