User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        databaseRoles: json_.containsKey('databaseRoles')
            ? (json_['databaseRoles'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        userType: json_.containsKey('userType')
            ? json_['userType'] as core.String
            : null,
      );