ServiceSpec.fromYaml constructor

ServiceSpec.fromYaml(
  1. String yaml
)

Implementation

factory ServiceSpec.fromYaml(String yaml) {
  return ServiceSpec.fromJson(jsonDecode(jsonEncode(loadYaml(yaml))));
}