UserBean.fromJson constructor

UserBean.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory UserBean.fromJson(Map<String, Object?> json) {
  return UserBean(
    accountId: json[r'accountId'] as String?,
    active: json[r'active'] as bool? ?? false,
    avatarUrls: json[r'avatarUrls'] != null
        ? UserBeanAvatarUrls.fromJson(
            json[r'avatarUrls']! as Map<String, Object?>)
        : null,
    displayName: json[r'displayName'] as String?,
    key: json[r'key'] as String?,
    name: json[r'name'] as String?,
    self: json[r'self'] as String?,
  );
}