UserBean.fromJson constructor

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

Implementation

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