AppConfigModel.fromYaml constructor
AppConfigModel.fromYaml(
- dynamic yamlPath
Implementation
factory AppConfigModel.fromYaml(yamlPath) {
final yamlMap = Map<String, dynamic>.from(yamlPath);
return AppConfigModel(
flutterPath: yamlMap['flutter_path'],
uploadOptions: UploadOptionsModel.fromYaml(yamlMap['upload_options']),
qrCode: QrCodeModel.fromYaml(yamlMap['qr_code']),
pipelineSteps: yamlMap['pipeline_steps'] != null
? List<PipelineStepModel>.from(
(yamlMap['pipeline_steps'] as List).map(
(step) =>
PipelineStepModel.fromYaml(Map<String, dynamic>.from(step)),
),
)
: null,
);
}