FileSourceSettings.fromJson constructor

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

Implementation

factory FileSourceSettings.fromJson(Map<String, dynamic> json) {
  return FileSourceSettings(
    convert608To708:
        (json['convert608To708'] as String?)?.toFileSourceConvert608To708(),
    framerate: json['framerate'] != null
        ? CaptionSourceFramerate.fromJson(
            json['framerate'] as Map<String, dynamic>)
        : null,
    sourceFile: json['sourceFile'] as String?,
    timeDelta: json['timeDelta'] as int?,
  );
}