from

fun from(displayName: String, hasUrl: Boolean): UserReference

Creates a registered UserReference if the display name is associated with a URL, otherwise creates an unregistered UserReference.