Get the String representation of a CodMethod.
static String? asString(CodMethod? codMethod) => codMethod?.toString();