from

fun from(value: String?): DeliveryMode?

Strict lookup: an unrecognised value is null, never a silent default.