AuthUserInfo.fromJson constructor

AuthUserInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AuthUserInfo.fromJson(Map<String, dynamic> json) => AuthUserInfo(
  id: _string(json['id']),
  email: _optionalString(json['email']),
  scopeNames: _stringList(json['scopeNames']),
  role: _enum(AdminRole.values, json['role']),
  created: _date(json['created']),
);