User.fromYamlMap constructor

User.fromYamlMap(
  1. YamlMap yamlMap
)

Implementation

factory User.fromYamlMap(YamlMap yamlMap) => User(
    username: yamlMap['username'],
    password: yamlMap['password'],
    userLevel: UserLevel.values.contains(yamlMap['userLevel'])
        ? UserLevel.values.byName(yamlMap['userLevel'].toString())
        : UserLevel.user,
    extension: yamlMap['extension']);