OutputConfig.fromJson constructor

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

Implementation

factory OutputConfig.fromJson(Map<String, dynamic> json) {
  return OutputConfig(
    s3OutputLocation: json['S3OutputLocation'] as String,
    compilerOptions: json['CompilerOptions'] as String?,
    kmsKeyId: json['KmsKeyId'] as String?,
    targetDevice: (json['TargetDevice'] as String?)?.toTargetDevice(),
    targetPlatform: json['TargetPlatform'] != null
        ? TargetPlatform.fromJson(
            json['TargetPlatform'] as Map<String, dynamic>)
        : null,
  );
}