fromYamlMap static method
Implementation
static PlatformConfiguration? fromYamlMap(dynamic map) {
if (map == null) {
return null;
}
if (map is! YamlMap) {
throw InvalidFormatException();
}
return PlatformConfiguration(id: map[_ID_KEY], name: map[_NAME_KEY]);
}