fromYamlMap static method

BuildVersion? fromYamlMap(
  1. dynamic map
)

Implementation

static BuildVersion? fromYamlMap(dynamic map) {
  if (map == null) {
    return null;
  }
  if (map is! YamlMap) {
    throw InvalidFormatException();
  }
  return BuildVersion(
      buildName: map[_BUILD_NAME_KEY], buildNumber: map[_BUILD_NUMBER_KEY]);
}